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

maths.functions.generators.UniformRandomGenerator Maven / Gradle / Ivy

The newest version!
package maths.functions.generators;

import datastructs.I2DDataSet;
import datastructs.IVector;

import java.util.*;

public class UniformRandomGenerator implements IRandomGenerator {

    @Override
    public >> List> generate(DataSetTp dataSet, int n){

        int min = 0;
        int max = dataSet.m();
        Random random = new Random();
        List> result = new ArrayList<>();
        Set touched = new HashSet<>();

        for(int r=0; r




© 2015 - 2024 Weber Informatics LLC | Privacy Policy