AllenNeuralDynamics / Aind.Behavior.VrForaging

Task implemention of VR Foraging experiment
https://allenneuraldynamics.github.io/Aind.Behavior.VrForaging/
MIT License
2 stars 0 forks source link

Allow expliclitly defining arbitrary patch statistics via lookup table #280

Closed bruno-f-cruz closed 1 month ago

bruno-f-cruz commented 1 month ago

P_dependent = [*arg]

Independent variables:

Boundary condition? if i > len(P_dependent) => P_dependent[-1]

bruno-f-cruz commented 1 month ago

Should probably re-use some sort of implementation for this too:

https://github.com/AllenNeuralDynamics/Aind.Behavior.Services/pull/67/files

bruno-f-cruz commented 1 month ago

A more general solution is to allow users to define a List<List> that can be used as a LUT where X[0] and X[1] encode the dependent and independent variables. Values in between fallow the same logic as it is currently implemented using available dependent variables, but the code will interpolate between the values in X.

Discrete cases will be trivially encoded by passing an exhaustive list of all values that the patch should transition through.