_CurveFit

it.grypho.scala.leonardo.optimize._CurveFit
case class _CurveFit(model: _Expression, t: _Variable, tdata: _Expression, ydata: _Expression, params: Vector[_Variable], p0: _Expression, bounds: Option[(_Expression, _Expression)], cov: Boolean) extends _Expression

lsqfit(model, t, T, Y, [[a], [b]], p0[, lb, ub][, cov]) — the curve-fit form (F_0063 Decision D): fits model in t to the data columns T and Y (scipy's curve_fit shape). Told apart from _LsqFit by its second argument, one bare name rather than a column.

t and the parameters are binders, excluded from children.

Value parameters

bounds

the lower and upper bounds

cov

whether to answer the covariance too

model

the model, an expression in t and the parameters

p0

the starting point

params

the parameters, in the order of p0

t

the independent variable

tdata

the values of t, a row or column

ydata

the observations, a row or column of the same length

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait _Expression
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def children: List[_Expression]

Sub-expressions subject to recursive structural traversal. Binder positions (e.g. the differentiation variable) are excluded.

Sub-expressions subject to recursive structural traversal. Binder positions (e.g. the differentiation variable) are excluded.

Attributes

Definition Classes

The solver's full answer, or why there is none; what the REPL queries — computed once per environment (F_0212).

The solver's full answer, or why there is none; what the REPL queries — computed once per environment (F_0212).

Attributes

override def eval(env: Environment): Either[_Expression, _Value]

Reduces this expression in the given environment.

Reduces this expression in the given environment.

Value parameters

env

variable bindings and display precision

Attributes

Returns

Right(v) when all free variables resolved to concrete values; Left(e) when reduction is partial or impossible

Definition Classes
override def rebuild(c: List[_Expression]): _Expression

Reconstructs the same node shape with replacement sub-expressions.

Reconstructs the same node shape with replacement sub-expressions.

Value parameters

newChildren

replacements in the same order and count as children

Attributes

Definition Classes
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Inherited fields

lazy val freeVars: Set[String]

Cached set of free variable names; O(1) after the first access.

Cached set of free variable names; O(1) after the first access.

Attributes

Inherited from:
_Expression