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

com.opengamma.strata.math.impl.random.RandomNumberGenerator Maven / Gradle / Ivy

There is a newer version: 2.12.46
Show newest version
/*
 * 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