simrun ❭ modular_reduced_model_inference ❭ strategy ❭ RaisedCosineBasis ❭ get_raised_cosine
RaisedCosineBasis.get_raised_cosine¶
-
static simrun.modular_reduced_model_inference.strategy.RaisedCosineBasis.get_raised_cosine(a=
1, c=1, phi=0, t=None, backend=np)¶ Calculate a single raised cosine basis function \(f_i\) over the domain \(t\).
- Parameters:¶
a (float) – The steepness of the raised cosine. Default is \(1\).
c (float) – The offset of the raised cosine. Default is \(1\).
phi (float) – The phase of the raised cosine. Default is \(0\).
t (array) – The domain of the raised cosine. Default is \([0, 80]\).
backend (module) – The backend to use (cupy or numpy). Default is
numpy.
- Returns:¶
The domain \(t\) and the raised cosine basis function \(f_i\) over this domain.
- Return type:¶
tuple