All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.finmath.montecarlo.RandomVariableFloatFactory Maven / Gradle / Ivy

/*
 * (c) Copyright Christian P. Fries, Germany. All rights reserved. Contact: [email protected].
 *
 * Created on 21.06.2017
 */

package net.finmath.montecarlo;

import net.finmath.stochastic.RandomVariable;

/**
 * @author Christian Fries
 *
 */
public class RandomVariableFloatFactory extends AbstractRandomVariableFactory {

	public RandomVariableFloatFactory() {
		super();
	}

	@Override
	public RandomVariable createRandomVariable(double time, double value) {
		return new RandomVariableFromFloatArray(time, value);
	}

	@Override
	public RandomVariable createRandomVariable(double time, double[] values) {
		return new RandomVariableFromFloatArray(time, values);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy