You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should be able to separate out the calculation parts and the presentation parts, which will simplify some stuff (like the sharing of slab and interval calculations). Basically a pipeline like:
Group everything and create objects that will store distribution information. Probably environments or R6 objects
Fill in the limits on those objects implied by the chosen density estimator. i.e. what is currently in compute_limits()
Fill in slab / interval / etc calculations. i.e. most of what is currently in compute_slab() and compute_intervals() but instead of putting them in the format for the data, store them internally, to be composed later. This would include calculating intervals, a grid, and density functions and intervals against that grid. Would also keep the pdf, cdf, and quantile functions for each dist around in its object for use later.
In stages, compose the datatype sections of output (slab and interval). e.g. the slab portion would use the grid + function evaluations as its basis, but add in interval containment info. The interval portion would use the interval evaluations as its basis, but add in pdf and cdf evaluations using the stored dist functions.
This should allow us to eliminate some duplicate work and also drop the use of the approximation functions for slab functions later (or, in the sample case, we can make these the stored functions).
The text was updated successfully, but these errors were encountered:
Should be able to separate out the calculation parts and the presentation parts, which will simplify some stuff (like the sharing of slab and interval calculations). Basically a pipeline like:
compute_limits()
compute_slab()
andcompute_intervals()
but instead of putting them in the format for the data, store them internally, to be composed later. This would include calculating intervals, a grid, and density functions and intervals against that grid. Would also keep the pdf, cdf, and quantile functions for each dist around in its object for use later.This should allow us to eliminate some duplicate work and also drop the use of the approximation functions for slab functions later (or, in the sample case, we can make these the stored functions).
The text was updated successfully, but these errors were encountered: