Class NDArrayRandom
Inheritance
System.Object
NDArrayRandom
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()
Namespace: NumSharp
Assembly: NumSharp.dll
Syntax
public class NDArrayRandom
Properties
| Improve this Doc View SourceSeed
Declaration
public static int Seed { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View Sourcenormal(Double, Double, Int32[])
Draw random samples from a normal (Gaussian) distribution.
Declaration
public NDArray<double> 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
| Type | Description |
|---|---|
| NDArray<System.Double> |
randn(Int32[])
Return a sample (or samples) from the “standard normal” distribution.
Declaration
public NDArray<double> randn(params int[] size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32[] | size |
Returns
| Type | Description |
|---|---|
| NDArray<System.Double> |
stardard_normal(Int32[])
Draw samples from a standard Normal distribution (mean=0, stdev=1).
Declaration
public NDArray<double> stardard_normal(params int[] size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32[] | size |
Returns
| Type | Description |
|---|---|
| NDArray<System.Double> |