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

net.finmath.randomnumbers.RandomNumberGenerator Maven / Gradle / Ivy

Go to download

finmath lib is a Mathematical Finance Library in Java. It provides algorithms and methodologies related to mathematical finance.

There is a newer version: 6.0.19
Show newest version
package net.finmath.randomnumbers;

import java.io.Serializable;

/**
 * Interface for an n-dimensional random number generator
 * generating a sequence of vectors sampling the space [0,1]^{n}
 *
 * @author Christian Fries
 * @version 1.0
 */
public interface RandomNumberGenerator extends Serializable {

	/**
	 * Get the next sample vector of dimension n, where n is getDimension.
	 *
	 * An implementation has to be thread safe.
	 *
	 * @return The next sample vector of dimension n, where n is getDimension.
	 */
	double[] getNext();

	/**
	 * Get the sample vector dimension.
	 *
	 * @return The sample vector dimension n.
	 */
	int getDimension();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy