<jupyter_start><jupyter_text>Smooth multivariate data<jupyter_code># Load packages
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd

from FDApy.preprocessing.smoothing.bandwidth import Bandwidth
from FDApy.misc import utils
from FDApy.representation.functional_data import DenseFunctionalData
from FDApy.representation.functional_data import IrregularFunctionalData
from FDApy.representation.functional_data import MultivariateFunctionalData
from FDApy.visualization.plot import plot

from scipy.interpolate import CubicSpline

RECORDING_NUMBER = '00'
# Load data 
x_smooth_fd = pd.read_pickle(f'./data/x_smooth_fd.pkl')
y_smooth_fd = pd.read_pickle(f'./data/y_smooth_fd.pkl')
xVelocity_smooth_fd = pd.read_pickle(f'./data/xVelocity_smooth_fd.pkl')
yVelocity_smooth_fd = pd.read_pickle(f'./data/yVelocity_smooth_fd.pkl')
xAcceleration_smooth_fd = pd.read_pickle(f'./data/xAcceleration_smooth_fd.pkl')
yAcceleration_smooth_fd = pd.read_pickle(f'./data/yAcceleration_smooth_fd.pkl')
# Create multivariate functional data
data_fd = MultivariateFunctionalData([x_smooth_fd, y_smooth_fd, 
                                      xVelocity_smooth_fd, yVelocity_smooth_fd, 
                                      xAcceleration_smooth_fd, yAcceleration_smooth_fd])
# Save the smoothed data
pd.to_pickle(data_fd, f'./data/tracks_smooth_fd.pkl')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08020231213872832, 'fraction_numerical': 0.001445086705202312, 'mean_word_length': 5.295454545454546, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '390970', 'license': 'MIT', 'n_tokens_mistral': 522, 'n_tokens_neox': 462, 'n_words': 78, 'path': 'round/032-smooth-multivariate.ipynb', 'repo_name': 'StevenGolovkine/fcubt', 'size': '1384'}