Calculates weight matrices
spfda_weight(X, Y, bandwidth, part)
X
design matrix
Y
response matrix
bandwidth
numeric band-width
part
list of time point boundaries
the weight matrix