Show / Hide Table of Contents

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()
Namespace: NumSharp.Core
Assembly: NumSharp.Core.dll
Syntax
public class NumPyRandom

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

permutation(Int32)

Declaration
public NDArray permutation(int max)
Parameters
Type Name Description
System.Int32 max
Returns
Type Description
NDArray
| Improve this Doc View Source

Permutation(Int32)

Declaration
public NDArray Permutation(int max)
Parameters
Type Name Description
System.Int32 max
Returns
Type Description
NDArray
| 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
Type Description
NDArray
| 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
Type Description
NDArray
| 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
Type Description
NDArray
| 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
Type Description
NDArray

Extension Methods

NDArrayRandomExtensions.shuffle(NumPyRandom, NDArray)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX