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

Method random

JSAT/src/jsat/linear/Vec.java:1138–1141  ·  view source on GitHub ↗

Creates a dense vector full of random values in the range [0, 1] @param length the length of the random vector to create @return a random vector of the specified length

(int length)

Source from the content-addressed store, hash-verified

1136 * @return a random vector of the specified length
1137 */
1138 public static Vec random(int length)
1139 {
1140 return random(length, RandomUtil.getRandom());
1141 }
1142
1143 /**
1144 * Creates a dense vector full of random values in the range [0, 1]

Callers 15

fitMethod · 0.95
getSimpleKClassLinearMethod · 0.45
setUpMethod · 0.45
testSearch_Vec_doubleMethod · 0.45
testSearch_Vec_intMethod · 0.45
testSearch_Vec_doubleMethod · 0.45
testSearch_Vec_intMethod · 0.45
testSearch_Vec_doubleMethod · 0.45

Calls 3

getRandomMethod · 0.95
setMethod · 0.95
nextDoubleMethod · 0.45

Tested by 15

getSimpleKClassLinearMethod · 0.36
setUpMethod · 0.36
testSearch_Vec_doubleMethod · 0.36
testSearch_Vec_intMethod · 0.36
testSearch_Vec_doubleMethod · 0.36
testSearch_Vec_intMethod · 0.36
testSearch_Vec_doubleMethod · 0.36
testSearch_Vec_intMethod · 0.36