Package jdistlib.inference.lang
Class ModelScript
java.lang.Object
jdistlib.inference.lang.ModelScript
Java-native compiler for the JDistlib language and its Stan-compatible source core.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CompiledModelScriptstatic CompiledModelScriptstatic CompiledModelScriptcompile(String source, Map<String, double[]> suppliedData, ExternalFunctionRegistry externalFunctions) Compiles with Java bindings for forward-declared external functions.static CompiledModelScriptcompileStan(String source) Compiles a data-free Stan source program supported by the compatibility core.static CompiledModelScriptcompileStan(String source, Map<String, double[]> suppliedData) Compiles ordinary Stan syntax supported by the Java-native compatibility core.static CompiledModelScriptcompileStan(String source, Map<String, double[]> suppliedData, ExternalFunctionRegistry externalFunctions) Compiles Stan-compatible source with Java external-function bindings.static voidvalidateStanSyntax(String source) Validates Stan-compatible source without binding data or constructing a model.static voidvalidateSyntax(String source) Parses the source without requiring data values or constructing a model.
-
Field Details
-
LANGUAGE_VERSION
- See Also:
-
STAN_SOURCE_COMPATIBILITY
- See Also:
-
-
Method Details
-
compile
-
compile
public static CompiledModelScript compile(String source, Map<String, double[]> suppliedData, ExternalFunctionRegistry externalFunctions) Compiles with Java bindings for forward-declared external functions. -
compile
-
compileStan
Compiles ordinary Stan syntax supported by the Java-native compatibility core. -
compileStan
public static CompiledModelScript compileStan(String source, Map<String, double[]> suppliedData, ExternalFunctionRegistry externalFunctions) Compiles Stan-compatible source with Java external-function bindings. -
compileStan
Compiles a data-free Stan source program supported by the compatibility core. -
validateSyntax
Parses the source without requiring data values or constructing a model. -
validateStanSyntax
Validates Stan-compatible source without binding data or constructing a model.
-