BEAST v2.7.8 Documentation: beastlabs.util.Script

BEASTObject that performs calculations based on the State.
Base class for Script-BEAST interoperation

Logable: yes, this can be used in a log.

Inputs:

value, expression, x, argnames, engine

 

value
type: java.lang.String
Script script needed for the calculations. It assumes there is a function f defined, which returns a single number or array of numbers.
Either this, or expression needs to be specified

 

expression
type: java.lang.String
expression representing the calculations
Either this, or value needs to be specified

 

x
type: beast.base.core.Function***
Parameters needed for the calculations
Optional input

 

argnames
type: java.lang.String
names of arguments used in expression (space delimited), order as given by XML
Optional input

 

engine
type: beastlabs.util.Script$Engine
Script needed for the calculations (one of [JavaScript, python, jruby, groovy] default Javascript)
Optional input