Show / Hide Table of Contents

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 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<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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>

Extension Methods

NDArrayRandomExtensions.Permutation(NDArrayRandom, Int32)
NDArrayRandomExtensions.randint(NDArrayRandom, Int32, Nullable<Int32>, Shape)
NDArrayRandomExtensions.Shuffle(NDArrayRandom, NDArray<Double>)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX