MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / sampleVec

Method sampleVec

JSAT/src/jsat/distributions/Distribution.java:204–207  ·  view source on GitHub ↗

This method returns a double array containing the values of random samples from this distribution. @param numSamples the number of random samples to take @param rand the source of randomness @return a vector of the random sample values

(int numSamples, Random rand)

Source from the content-addressed store, hash-verified

202 * @return a vector of the random sample values
203 */
204 public DenseVector sampleVec(int numSamples, Random rand)
205 {
206 return DenseVector.toDenseVec(sample(numSamples, rand));
207 }
208
209 @Override
210 abstract public Distribution clone();

Callers 1

transformMethod · 0.45

Calls 2

toDenseVecMethod · 0.95
sampleMethod · 0.95

Tested by

no test coverage detected