StanVariable: A Stan variable

StanVariableR Documentation

A Stan variable

Description

A Stan variable

A Stan variable

Super class

odemodeling::StanDeclaration -> StanVariable

Public fields

type

type of the variable

Methods

Public methods

Inherited methods

Method new()

Create a StanVariable object.

Usage
StanVariable$new(name, type = "real", lower = NULL, upper = NULL)
Arguments
name

name of the dimension variable

type

variable type (real or int)

lower

lower bound

upper

upper bound


Method declaration()

Create a declaration for the variable

Usage
StanVariable$declaration()
Returns

a string


Method signature()

The variable when used in function signature

Usage
StanVariable$signature()

Method can_be_made_parameter()

Can the object be made into a parameter?

Usage
StanVariable$can_be_made_parameter()

Method clone()

The objects of this class are cloneable with this method.

Usage
StanVariable$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


jtimonen/odemodeling documentation built on Sept. 15, 2024, 4:29 a.m.