[julia-users] Re: What are the best ways to define scenarios?

2016-05-03 Thread Scott T
I have heard good things about Parameters.jl , which lets you make types representing individual models or scenarios that have default values. You would want to do something like using Parameters @with_kw immutable Scenario par1::Float64 =

[julia-users] Re: What are the best ways to define scenarios?

2016-04-29 Thread K leo
Thanks. My issue of using a type is where to keep the set of constant values for each scenario. I can only put 1 set of them in the constructor. On Friday, April 29, 2016 at 7:12:02 AM UTC+5:30, Lyndon White wrote: > > Define a type (possibly immutable) per sensation, with the constants >

[julia-users] Re: What are the best ways to define scenarios?

2016-04-28 Thread Lyndon White
Define a type (possibly immutable) per sensation, with the constants Create a function that operates on that type that carries out the scenario. loop (or map (or pmap)) through an array of the aforementioned type, applying the aforementioned function. On Friday, 29 April 2016 09:15:40 UTC+8, K