/*
Very quick example of these two, for a demonstration
*/
/** Symbolic dists are smooth and very fast to render */
//asSymbolic(t) = normal(t^2.5, t^2)
/** Sample Set dists require sampling, which introduces variance. They can be slower. */
//asSampleSet(t) = SampleSet.fromDist(normal(t^2.5, t^2))
a = 1
yearlyChange() = SampleSet.fromDist(0.1 to 0.3)
c = reduce(
List.make(10, 1),
[mx(1)],
{|acc, value|{
newValue = List.last(acc) * (1 + yearlyChange())
List.append(acc, newValue)
}}
)
f(t) = c[floor(t)]