Language Module
An F# Domain Specific Language (DSL) for scripting with Bristlecone.
Types and nested modules
| Type/Module | Description |
|
Operations for boolean model expressions. |
|
|
|
|
|
Compile model expressions into functions that take changing state as Tensors. |
|
|
|
|
|
|
|
Types to represent a hypothesis, given that a hypothesis is a model system that contains some alternate formulations of certain components. |
|
|
Terms for scaffolding a model system for use with Bristlecone. |
|
|
Scaffolds a `ModelSystem` for fitting with Bristlecone. |
|
|
|
|
|
|
|
|
Terms for designing tests for model systems. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Functions and values
| Function or value |
Description
|
Full Usage:
Conditional cond ifTrue ifFalse
Parameters:
BoolExpression
ifTrue : ModelExpression<'u>
ifFalse : ModelExpression<'u>
Returns: ModelExpression<'u>
|
For conditional statements, all three branches must have the same unit.
|
|
|
|
|
Full Usage:
Exponential expr
Parameters:
ModelExpression<MeasureOne>
Returns: ModelExpression<MeasureOne>
|
|
|
|
Full Usage:
Inverse forwardFn target lo hi
Parameters:
ModelExpression<'v> -> ModelExpression<'u>
target : ModelExpression<'u>
lo : ModelExpression<'v>
hi : ModelExpression<'v>
Returns: ModelExpression<'v>
|
|
Full Usage:
Label label expr
Parameters:
string
expr : ModelExpression<'u>
Returns: ModelExpression<'u>
|
|
Full Usage:
Logarithm expr
Parameters:
ModelExpression<MeasureOne>
Returns: ModelExpression<MeasureOne>
|
|
|
|
|
|
Full Usage:
Power baseExpr expExpr
Parameters:
ModelExpression<'u>
expExpr : ModelExpression<MeasureOne>
Returns: ModelExpression<'u>
|
|
|
|
Full Usage:
StateAt (offset, sId)
Parameters:
int<MeasureProduct<time index, MeasureOne>>
sId : StateId<'u>
Returns: ModelExpression<'u>
|
|
|
|
|
|
A short code representation of an identifier for a parameter, model equation, or other model component.
|
|
Full Usage:
compute x t pool environment ex
Parameters:
float
t : float<MeasureProduct<time index, MeasureOne>>
pool : ParameterPool
environment : CodedMap<float>
ex : ModelExpression<'u>
Returns: float
|
Computes a `ModelExpression` given the current time, value, environment, and parameter pool.
|
Full Usage:
computeT x t pool environment ex
Parameters:
TypedTensor<Scalar, MeasureProduct<state, MeasureOne>>
t : TypedTensor<Scalar, 'u>
pool : ParameterPool
environment : CodedMap<TypedTensor<Scalar, MeasureProduct<environment, MeasureOne>>>
ex : ModelExpression<'v>
Returns: TypedTensor<Scalar, MeasureProduct<MeasureInverse<'u>, MeasureProduct<state, MeasureOne>>>
|
|
|
|
Full Usage:
days n
Parameters:
int<MeasureProduct<day, MeasureOne>>
Returns: FixedTemporalResolution<'a>
|
|
|
|
|
|
|
|
|
|
Full Usage:
months n
Parameters:
int<MeasureProduct<month, MeasureOne>>
Returns: FixedTemporalResolution<'a>
|
|
|
|
|
|
Full Usage:
parameter code con lower upper
Parameters:
string
con : Constraint
lower : float<'u>
upper : float<'u>
Returns: IncludedParameter<'u>
|
Define an estimatable parameter for a Bristlecone model.
|
|
|
Full Usage:
years n
Parameters:
int<MeasureProduct<year, MeasureOne>>
Returns: FixedTemporalResolution<'a>
|
|
bristlecone