Show / Hide Table of Contents

Interface IRandomizer

Interface for all random numbers generator facades.

Namespace: SpiceSharpParser.Common.Mathematics.Probability
Assembly: SpiceSharpParser.dll
Syntax
public interface IRandomizer

Properties

| Improve this Doc View Source

CdfPoints

Gets or sets number of cdf points.

Declaration
int CdfPoints { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

CurrentPdfName

Gets or sets current pdf name.

Declaration
string CurrentPdfName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

NormalLimit

Gets or sets normal limit.

Declaration
double NormalLimit { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Seed

Gets or sets the random seed.

Declaration
int? Seed { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

Methods

| Improve this Doc View Source

Clone()

Declaration
IRandomizer Clone()
Returns
Type Description
IRandomizer
| Improve this Doc View Source

GetRandomDoubleProvider(String)

Gets a random double provider for a given seed and pdf.

Declaration
IRandomDoubleProvider GetRandomDoubleProvider(string pdfName = null)
Parameters
Type Name Description
System.String pdfName

Name of PDF.

Returns
Type Description
IRandomDoubleProvider

A random double provider.

| Improve this Doc View Source

GetRandomIntegerProvider(String)

Gets a random integer provider for a given seed and pdf.

Declaration
IRandomIntegerProvider GetRandomIntegerProvider(string pdfName = null)
Parameters
Type Name Description
System.String pdfName

Name of PDF.

Returns
Type Description
IRandomIntegerProvider

A random integer provider.

| Improve this Doc View Source

GetRandomProvider(String)

Gets a random number provider for a given seed and pdf.

Declaration
IRandomNumberProvider GetRandomProvider(string pdfName = null)
Parameters
Type Name Description
System.String pdfName

Name of PDF.

Returns
Type Description
IRandomNumberProvider

A random number provider.

| Improve this Doc View Source

RegisterPdf(String, Func<Pdf>)

Registers a Pdf in the randomizer.

Declaration
void RegisterPdf(string name, Func<Pdf> pdf)
Parameters
Type Name Description
System.String name

Name of Pdf.

System.Func<Pdf> pdf

Pdf factory.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX