类 DSFactory
java.lang.Object
org.hipparchus.analysis.differentiation.DSFactory
- 所有已实现的接口:
-
Serializable
- 从以下版本开始:
- 1.1
- 另请参阅:
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final DerivativeStructurebuild(double... derivatives) 从所有导数构建一个DerivativeStructure。constant(double value) 构建表示常量值的DerivativeStructure。获取当前维度的编译器。获取Field,其实例属于DerivativeStructure。variable(int index, double value) 构建表示变量的DerivativeStructure。
-
构造器详细资料
-
DSFactory
public DSFactory(int parameters, int order) 简单构造器。- 参数:
-
parameters- 自由参数的数量 -
order- 导数阶数
-
-
方法详细资料
-
getDerivativeField
获取Field,DerivativeStructure实例所属的领域。- 返回:
-
Field,DerivativeStructure实例所属的领域
-
constant
构建表示常量值的DerivativeStructure。- 参数:
-
value- 常量的值 - 返回:
-
表示常量值的
DerivativeStructure
-
variable
构建表示变量的DerivativeStructure。使用此方法构建的实例被视为相对于其进行微分计算的自由变量。因此,它们相对于自身的微分为+1。
- 参数:
-
index- 变量的索引(从0到getCompiler().getFreeParameters()- 1) -
value- 变量的值 - 返回:
-
表示变量的
DerivativeStructure - 抛出:
-
MathIllegalArgumentException- 如果索引大于或等于getCompiler().getFreeParameters()
-
build
@SafeVarargs public final DerivativeStructure build(double... derivatives) throws MathIllegalArgumentException 从所有导数构建DerivativeStructure。- 参数:
-
derivatives- 根据DSCompiler.getPartialDerivativeIndex(int...)排序的导数 - 返回:
-
具有指定导数的
DerivativeStructure - 抛出:
-
MathIllegalArgumentException- 如果导数数组与编译器期望的size不匹配 -
MathIllegalArgumentException- 如果阶数过大 - 另请参阅:
-
getCompiler
获取当前维度的编译器。- 返回:
- 当前维度的编译器
-