com.opengamma.strata.math.impl.random.RandomNumberGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of strata-math Show documentation
Show all versions of strata-math Show documentation
Mathematic support for Strata
/*
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.math.impl.random;
import java.util.List;
/**
* Generator of random numbers.
*/
public interface RandomNumberGenerator {
/**
* Gets an array of random numbers.
*
* @param size the size of the resulting array
* @return the array of random numbers
*/
public abstract double[] getVector(int size);
/**
* Gets a list of random number arrays.
*
* @param arraySize the size of each resulting array
* @param listSize the size of the list
* @return the list of random number arrays
*/
public abstract List getVectors(int arraySize, int listSize);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy