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 SourceCdfPoints
Gets or sets number of cdf points.
Declaration
int CdfPoints { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
CurrentPdfName
Gets or sets current pdf name.
Declaration
string CurrentPdfName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
NormalLimit
Gets or sets normal limit.
Declaration
double NormalLimit { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
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 SourceClone()
Declaration
IRandomizer Clone()
Returns
| Type | Description |
|---|---|
| IRandomizer |
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. |
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. |
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. |
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 factory. |