DerivativeWrapper

org.abh80.nf.core.math.calculus.DerivativeWrapper
class DerivativeWrapper(parameters: Int, maxOrder: Int, data: Array[Double]) extends Derivative, Serializable

A simple implementation of the Derivative trait for multivariate automatic differentiation.

Value parameters

data

An array containing the function value and all partial derivatives.

maxOrder

The maximum derivation order.

parameters

The number of free parameters (independent variables).

Attributes

Graph
Supertypes
trait Serializable
trait Derivative
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def getFreeParameters: Int

Returns the number of free parameters in the function.

Returns the number of free parameters in the function.

Attributes

Definition Classes
override def getOrder: Int

Returns the maximum derivation order supported by this instance.

Returns the maximum derivation order supported by this instance.

Attributes

Definition Classes
override def getPartialDerivative(orders: Array[Int]): Double

Retrieves the value of the partial derivative for the specified orders.

Retrieves the value of the partial derivative for the specified orders.

Attributes

Definition Classes
def getSize: Int
override def getValue: Double

Get the value part of the wrapper

Get the value part of the wrapper

Attributes

Definition Classes