Class: Generator

Generator()

new Generator()

Source:

Classes

Generator

Methods

choice(a, size, replace, p, axis) → {NDArray}

Parameters:
Name Type Default Description
a *
size * null
replace * true
p * null
axis * 0
Source:
Returns:
Type
NDArray

integers(low, highopt, sizeopt, endpointopt) → {NDArray}

Parameters:
Name Type Attributes Default Description
low number
high number <optional>
null
size number <optional>
null
endpoint boolean <optional>
false
Source:
Returns:
Type
NDArray

normal(locopt, scaleopt, sizeopt) → {NDArray}

Parameters:
Name Type Attributes Default Description
loc number <optional>
0
scale number <optional>
1
size null | number <optional>
null
Source:
Returns:
Type
NDArray

permutation(a, axis) → {NDArray}

Parameters:
Name Type Default Description
a *
axis * 0
Source:
Returns:
Type
NDArray

permuted(a, axis, out) → {NDArray}

Parameters:
Name Type Default Description
a *
axis * null
out * null
Source:
Returns:
Type
NDArray

random(size, out) → {NDArray}

Parameters:
Name Type Default Description
size * null
out * null
Source:
Returns:
Type
NDArray

shuffle(a, axis)

Parameters:
Name Type Default Description
a *
axis * 0
Source:

uniform(low, high, size) → {NDArray}

Parameters:
Name Type Default Description
low * 0
high * 1
size * null
Source:
Returns:
Type
NDArray