simrunmodular_reduced_model_inferencestrategyRaisedCosineBasisget_superposition

RaisedCosineBasis.get_superposition

simrun.modular_reduced_model_inference.strategy.RaisedCosineBasis.get_superposition(x)

Get the weighed sum \(\mathbf{w}(\tau)\) of the basis functions \(f\).

The superposition of all basis functions, weighed by the input weights, is a single filter of length width that can be used to weigh the input data: synapse activations.

\[\mathbf{w}(\tau) = \sum_{i} x_i\ f_i(\tau) = \mathbf{x} \cdot \mathbf{f}(\tau)\]
Parameters:

x (array) – The (learnable) input weights \(\mathbf{x}\)

Returns:

The weighed sum of the basis functions.

Return type:

array