-
Hi scikit-fda team, I have checked the doc and it seems the underlying assumption when creating Attempt 1: create import skfda
grid_points = [[0, 0.2, 0.5, 0.9, 1], [0, 0.2, 0.5, 0.9]]
data_matrix = np.array([
[0, 0.2, 0.5, 0.9, 1], # First observation
[0, 0.04, 0.25, 0.81], # Second observation
])
fd = skfda.FDataGrid(
data_matrix=data_matrix,
grid_points=grid_points,
) Output:
Attempt 2: Create a FDataGrid for each trace, then l need a function to merge them. Do you have such thing? Attempt 3: Resample each trace to a median length. This is doable but I'm afraid certain information could be lost that potentially affect the warping result. Could you please advise on what is the proper way to do it? Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
What do you mean by different lengths? As far as I know, that could mean two different things:
Which one is your case? |
Beta Was this translation helpful? Give feedback.
What do you mean by different lengths? As far as I know, that could mean two different things:
FData
subclass to handle this kind of data, but currently we are not prioritizing that. A possible workaround is to express your data in a common grid (by interpolation) or project it to a common basis. Once you have both with the exact same representat…