/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/alternative/RandomVariableAAD.java
private static final int serialVersionUID = 2459373647785530657L;
private static final long serialVersionUID = 2459373647785530657L;
import java.util.function.IntToDoubleFunction; import java.util.stream.DoubleStream; import net.finmath.functions.DoubleTernaryOperator; import net.finmath.montecarlo.RandomVariableFromDoubleArray; import net.finmath.stochastic.RandomVariable; public class RandomVariableAAD implements RandomVariable { <extra_id_0> private static ArrayList<RandomVariableAAD> arrayListOfAllAADRandomVariables = new ArrayList<>(); private static AtomicInteger indexOfNextRandomVariable = new AtomicInteger(0); private enum OperatorType { ADD, MULT, DIV, SUB, SQUARED, SQRT, LOG, SIN, COS, EXP, INVERT, CAP, FLOOR, ABS, ADDPRODUCT, ADDRATIO, SUBRATIO, BARRIER, DISCOUNT, ACCRUE, POW, AVERAGE, VARIANCE, STDEV, MIN, MAX, STDERROR, SVARIANCE