simrunmodular_reduced_model_inferencestrategyRaisedCosineBasiscompute

RaisedCosineBasis.compute

simrun.modular_reduced_model_inference.strategy.RaisedCosineBasis.compute(width=80)

Compute the vector of raised cosine basis functions \(\mathbf{f}\).

Each element \(f_i\) in the vector \(\mathbf{f}\) is a raised cosine basis function with a different \(\phi_i\). The domain of each \(f_i\) is \([0, width]\).

Parameters:

width (int) – The width of the basis functions.

Returns:

The object itself, with a defined basis attribute.

Return type:

RaisedCosineBasis