Bagikan melalui


IDistribution Interface

Defines the distribution contract.

Namespace:  Microsoft.Data.Schema.Tools.DataGenerator
Assembly:  Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)

Syntax

'Declaration
<CLSCompliantAttribute(True)> _
Public Interface IDistribution _
    Inherits IExtension
[CLSCompliantAttribute(true)]
public interface IDistribution : IExtension
[CLSCompliantAttribute(true)]
public interface class IDistribution : IExtension
[<CLSCompliantAttribute(true)>]
type IDistribution =  
    interface
        interface IExtension
    end
public interface IDistribution extends IExtension

The IDistribution type exposes the following members.

Methods

  Name Description
Public method GetRangeValue When implemented in a class, returns a value that is between 0 and 1 and that represents a point on the distribution curve.
Public method Initialize When implemented in a class, initializes an instance of a distribution class.
Public method SetInputValues When implemented in a class, sets the input values for a distribution.
Public method ValidateInputs Validates that all the required input properties for the distribution have been set.

Top

Remarks

Each standard data generator that is numeric (Decimal, Money, DateTime, Real, Float, and the integer generators) has a Distribution property. The user can specify the Distribution property to generate data that approximates a statistical distribution curve. The standard distribution options are as follows: Uniform, Normal, Normal Inverse, Exponential, and Exponential Inverse.

If the standard distributions are insufficient, you can create a custom distribution. To create a custom distribution, you must create a class that implements IDistribution or inherits from Distribution. You identify the class as a distribution by decorating it with DistributionAttribute.

You can create a custom designer for a custom distribution, or you can use DefaultDistributionDesigner.

See Also

Reference

Microsoft.Data.Schema.Tools.DataGenerator Namespace

Distribution

DistributionAttribute

DefaultDistributionDesigner