Class NumPyRandom
Inheritance
System.Object
NumPyRandom
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NumSharp.Core.dll
Syntax
Properties
|
Improve this Doc
View Source
Seed
Declaration
public static int Seed { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
normal(Double, Double, Int32[])
Draw random samples from a normal (Gaussian) distribution.
Declaration
public NDArray normal(double loc, double scale, params int[] size)
Parameters
Type |
Name |
Description |
System.Double |
loc |
Mean of the distribution
|
System.Double |
scale |
Standard deviation of the distribution
|
System.Int32[] |
size |
|
Returns
|
Improve this Doc
View Source
permutation(Int32)
Declaration
public NDArray permutation(int max)
Parameters
Type |
Name |
Description |
System.Int32 |
max |
|
Returns
|
Improve this Doc
View Source
Permutation(Int32)
Declaration
public NDArray Permutation(int max)
Parameters
Type |
Name |
Description |
System.Int32 |
max |
|
Returns
|
Improve this Doc
View Source
randint(Int32, Int32)
Declaration
public NDArray randint(int low, int size = 1)
Parameters
Type |
Name |
Description |
System.Int32 |
low |
|
System.Int32 |
size |
|
Returns
|
Improve this Doc
View Source
randint(Int32, Nullable<Int32>, Shape)
Declaration
public NDArray randint(int low, int? high = default(int? ), Shape shape = null)
Parameters
Type |
Name |
Description |
System.Int32 |
low |
|
System.Nullable<System.Int32> |
high |
|
Shape |
shape |
|
Returns
|
Improve this Doc
View Source
randn(Int32[])
Return a sample (or samples) from the “standard normal” distribution.
Declaration
public NDArray randn(params int[] size)
Parameters
Type |
Name |
Description |
System.Int32[] |
size |
|
Returns
|
Improve this Doc
View Source
stardard_normal(Int32[])
Draw samples from a standard Normal distribution (mean=0, stdev=1).
Declaration
public NDArray stardard_normal(params int[] size)
Parameters
Type |
Name |
Description |
System.Int32[] |
size |
|
Returns
Extension Methods