bsfit.nodes.models.utils.simulate¶
- bsfit.nodes.models.utils.simulate(database: pandas.core.frame.DataFrame, sim_p: dict, prior_shape: str, prior_mode: float, readout: str) Dict[str, Any] [source]¶
simulate estimate data per condition
- Parameters
database (pd.DataFrame) –
dataset with columns:
'stim_mean': the stimulus features (e.g., motion direction) 'stim_std': the stimulus feature strengths 'prior_mode': the mode of prior 'prior_std': the std of the prior 'prior_shape': the prior function (e.g., "vonMisesPrior") 'estimate' (optional): the stimulus feature estimates
sim_p (dict) – the simulation parameters
prior_shape (str) – the prior function (“vonMisesPrior”)
prior_mode (float) – the mode of the prior
- Returns
record of simulation data
- Return type
Dict[str, Any]