Builtin Functions¶
This pages describes all available builtin functions.
Cash flow functions¶
Add CashFlows¶
addCashFlows( e1: Transfers , e2: Transfers) : Transfers
The addCashFlows() function returns the pointwise addition of e1and e2. Note e1and e2should be Transfers of equal lenght.
Dicount¶
dicount( e1: Transfers , e2: Float , e3: Float) : Float
The discount() function returns the discounted transfers, e1, with interest rate e2at timepoint e3.
Dicount sub tax¶
discountSubTax( e1: Transfers , e2: Float , e3: Float, e4: Float) : Float
The discount() function returns the discounted transfers, e1, with interest rate e2at timepoint e3subtracted the tax of e4.
Scale¶
scale( e1: Transfers , e2: Float) : Transfers
The scale() function returns transfers e1scaled by e21.
Sum cashflows¶
sumCashFlows( e1: List<Transfers>) : Transfers
The sumCashFlows() function returns the pointwise summed transfers of e1.
IFunction functions¶
Create piecewise constant¶
createPiecewiseConstant(e1: Transfers) : IFunction
The createPiecewiseConstant() function returns a piecewise IFunction specified by the transfers of e1.
Create sum¶
createSum(e1: List<IFunction> ) : IFunction
The createSum() function returns a IFunction resulting calling all IFunctions in the list e1and summing the result of these.
List functions¶
Max of list¶
maxOfList( e1: List<Float> ) : Float
the maxOfList() function returns the maximum value in the list e1.
Min of list¶
minOfList( e1: List<Float> ) : Float
the minOfList() function returns the minimum value in the list e1.
Range¶
range( e1: Float , e2: Float ) : List<Float>
the range() function returns a list containing all integer values in [e1, e2].
Single¶
single( e1: List<T1> ) : T1
the single() function returns the single value contained in e1. Note e1must contain exactly one value.
Skip¶
skip( e1: Float , e2: List<T1> ) : List<T1>
the skip() function returns the list of e2having skippid the first e1elements.
Unique¶
unique( e1: List<T1>) : List<1>
The unique() function returns a list containing the unique elements of e1.
Map functions¶
Create map¶
createMap( e1: List<T1> , e2: List<T2>) : Map<T1,T2>
The createMap() function returns a map from the values e1to the values of e2. Note e1and e2must be lists of equal length.
Map to values¶
mapToValues(e1: Map<T1, T2>) : List<T2>
the mapToValues() function returns a list containing all the values of e1.
Math functions¶
Absolute¶
abs( e1: Float ) : Float
The abs() function returns the absolute value of e1. E.g. abs(-4) returns 4.
Bound¶
bound( e1: Float , e2: Float , e3 : Float) : Float
the bound() function returns e1bounded within e2and e3. E.g. bound(-3 , -2 , 3) returns -3.
Max¶
max( e1: Float , e2) : Float
the max() function returns the maximum of e1and e2. E.g. max(-3 , -2 ) returns -2.
Min¶
min( e1: Float , e2) : Float
the min() function returns the minimum of e1and e2. E.g. min(-3 , -2 ) returns -3.
Power¶
pow( e1: Float , e2: Float ) : Float
The pow() function returns e1to the power of e2. E.g. pow(4 , 3) returns 4 to the power of 3.
Sqr - Should be renamed to sqrt¶
sqr( e1: Float ) : Float
the sqr() function returns the square root of e1.