/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/RandomVariableDifferentiableAAD.java
operatorTreeNode = new OperatorTreeNode( STDEV2, argumentOperatorTreeNodes, argumentValues, estimator, factory) ;
operatorTreeNode = new OperatorTreeNode ( operator, argumentOperatorTreeNodes, argumentValues, estimator, factory ) ;
private RandomVariable values; private final OperatorTreeNode operatorTreeNode; private final RandomVariableDifferentiableAADFactory factory; public RandomVariableDifferentiableAAD(final RandomVariable values, final List<OperatorTreeNode> argumentOperatorTreeNodes, final List<RandomVariable> argumentValues, final ConditionalExpectationEstimator estimator, final OperatorType operator, final RandomVariableDifferentiableAADFactory factory, final int methodArgumentTypePriority) { super(); this.values = values; <extra_id_0> this.factory = factory != null ? factory : new RandomVariableDifferentiableAADFactory(); typePriority = methodArgumentTypePriority; } public static RandomVariableDifferentiableAAD of(final double value) { return new RandomVariableDifferentiableAAD(value); }