GenOrder


VariableUnit

Namespace: Informedica.GenOrder.Lib

Functions that deal with the VariableUnit type

Nested types and modules

TypeDescription
VariableUnit

A VariableUnit is the combination of an Informedica.GenSolver.Lib.Variable with an Informedica.GenUnits.Lib.CombiUnit The Variable stores the base values according to the UnitGroup

ModuleDescription
Concentration

Type and functions that represent a concentration, and a concentration is a quantity per time

Count

Type and functions that represent a count

Dose

Type and functions that represent a dose, and a dose is a dose quantity, total and rate

DoseAdjust

Type and functions that represent an adjusted dose, and a dose is an adjusted dose quantity, total and rate

Frequency

Type and functions that represent a frequency

Name

Helper functions for Informedica.GenSolver.Variable.Name type

Quantity

Type and functions that represent a quantity

QuantityAdjust

Type and functions that represent a adjusted quantity, and a adjusted quantity is a quantity per time

Rate

Type and functions that represent a rate, and a rate is a quantity per time

RateAdjust

Type and functions that represent a adjusted rate, and a adjusted rate is a quantity per time unit

Time

Type and functions that represent a time

Total

Type and functions that represent a total, and a total is a quantity over a time period

TotalAdjust

Type and functions that represent a adjusted total, and a adjusted total is a quantity per time

Functions and values

Function or valueDescription
apply f vru
Signature: f:(VariableUnit -> '?6723) -> vru:VariableUnit -> '?6723
Type parameters: '?6723

Apply f to VariableUnit vru

create nme ung
Signature: nme:Name -> ung:UnitGroup -> VariableUnit

Create a new VariableUnit with Name nme and UnitGroup ung

fromVar toVar c vrll vru
Signature: toVar:('?6739 -> VariableUnit) -> c:(VariableUnit -> '?6739) -> vrll:Variable list list -> vru:'?6739 -> '?6739
Type parameters: '?6739

Set a specific VariableUnit with a Variable from a list of Variable lists vrll that has the same name as vru. Return the unmodified vru if no Variable can be found. c is used to construct the specific variable and toVar to extract the current variable from vru

get
Signature: VariableUnit -> VariableUnit

Utitlity function to facitlitate type inference

getAll arg1
Signature: VariableUnit -> Variable * UnitGroup

Get all record fiels from a VariableUnit

getName vru
Signature: vru:VariableUnit -> Name

Get the Variable.Name from a VariableUnit vru

getUnitGroup
Signature: VariableUnit -> UnitGroup

Get the UnitGroup from a VariableUnit

getVar
Signature: VariableUnit -> Variable

Get the Variable from a VariableUnit

setIncr unt vru
Signature: unt:CombiUnit option -> vru:VariableUnit -> BigRational list -> Equation list -> Equation list

Set increment of VariableUnit vru with values with unit unt in a list of equations

setMaxExcl unt vru
Signature: unt:CombiUnit option -> vru:VariableUnit -> BigRational list -> Equation list -> Equation list

Set maximum exclusive of VariableUnit vru with values with unit unt in a list of equations

setMaxIncl unt vru
Signature: unt:CombiUnit option -> vru:VariableUnit -> BigRational list -> Equation list -> Equation list

Set maximum inclusive of VariableUnit vru with values with unit unt in a list of equations

setMinExcl unt vru
Signature: unt:CombiUnit option -> vru:VariableUnit -> BigRational list -> Equation list -> Equation list

Set minimum exclusive of VariableUnit vru with values with unit unt in a list of equations

setMinIncl unt vru
Signature: unt:CombiUnit option -> vru:VariableUnit -> BigRational list -> Equation list -> Equation list

Set minimum inclusive of VariableUnit vru with values with unit unt in a list of equations

setName nm vru
Signature: nm:Name -> vru:VariableUnit -> VariableUnit

Set the 'Name' to the Variable of the VariableUnit

setProp vru p vs unt eqs
Signature: vru:VariableUnit -> p:Prop -> vs:BigRational list -> unt:CombiUnit -> eqs:Equation list -> Equation list

Set a property p of a VariableUnit vru with values vs and CombinedUnit unt in a Equation list

setPropWithUnit prop unt vru vs eqs
Signature: prop:Prop -> unt:CombiUnit option -> vru:VariableUnit -> vs:BigRational list -> eqs:Equation list -> Equation list

Set a property prop of a VariableUnit vru with values vs and unit unt in a set of equations eqs. Return the unmodified set of unt is None.

setVals unt vru
Signature: unt:CombiUnit option -> vru:VariableUnit -> BigRational list -> Equation list -> Equation list

Set values of VariableUnit vru with values with unit unt in a list of equations

toEq cr y xs
Signature: cr:(Variable * Variable list -> '?6730) -> y:VariableUnit -> xs:VariableUnit list -> '?6730
Type parameters: '?6730

Create an Equation using a constructor cr a result VariableUnit y and a list of VariableUnit list xs

toProdEq succ fail
Signature: succ:(Equation -> Equation) -> fail:(Message -> Equation) -> VariableUnit -> VariableUnit list -> Equation

Create a ProdEquation from VariableUnits

toString vru
Signature: vru:VariableUnit -> string

Get the string representation of a VariableUnit vru

toSumEq succ fail
Signature: succ:(Equation -> Equation) -> fail:(Message -> Equation) -> VariableUnit -> VariableUnit list -> Equation

Create a SumEquation from VariableUnits

tryFind get n xsl
Signature: get:('?6735 -> '?6736) -> n:'?6736 -> xsl:'?6735 list list -> '?6735 option
Type parameters: '?6735, '?6736

Try find the first element with n in a list of list xsl with a function get to get n from an element

tryFindVarUnt
Signature: Name -> VariableUnit list list -> VariableUnit option

Try find the first VariableUnit with a specific Name in a list of lists

withVar ung var
Signature: ung:UnitGroup -> var:Variable -> VariableUnit

Create a VariableUnit with Variable var and UnitGroup ung

Fork me on GitHub