Udostępnij przez


DimensionAttribute.DiscretizationMethod Property

Gets or sets the method to be used for discretization.

Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in microsoft.analysisservices.dll)

Syntax

'Deklaracja
<DefaultValueAttribute(DiscretizationMethod.None)> _
Public Property DiscretizationMethod As DiscretizationMethod
[DefaultValueAttribute(DiscretizationMethod.None)] 
public DiscretizationMethod DiscretizationMethod { get; set; }
[DefaultValueAttribute(DiscretizationMethod::None)] 
public:
property DiscretizationMethod DiscretizationMethod {
    DiscretizationMethod get ();
    void set (DiscretizationMethod value);
}
/** @property */
public DiscretizationMethod get_DiscretizationMethod ()

/** @property */
public void set_DiscretizationMethod (DiscretizationMethod value)
public function get DiscretizationMethod () : DiscretizationMethod

public function set DiscretizationMethod (value : DiscretizationMethod)

Property Value

A DiscretizationMethod object containing the method to be used for discretization.

Remarks

The value of DiscretizationMethod determines how values for the DimensionAttribute are discretized, or organized into a specific set of groups.

This property can be set to the following values:

Value

Description

Automatic

Equivalent to the AUTOMATIC discretization method for mining structure columns.

EqualAreas

Equivalent to the EQUAL_AREAS discretization method for mining structure columns.

Clusters

Equivalent to the CLUSTERS discretization method for mining structure columns.

Thresholds

Equivalent to the THRESHOLDS discretization method for mining structure columns.

EqualRanges

Equivalent to the EQUAL_RANGES discretization method for mining structure columns.

For data mining, the method that is used to discretize data can be different depending on whether your data is relational or stored in an OLAP dimension.

For OLAP data mining, the algorithm automatically computes the number of buckets to generate, by using the following equation, where n is the number of distinct values of data in the column:

Number of Buckets = sqrt(n)

If you do not want Analysis Services to calculate the number of buckets, you can use the DiscretizationBucketCount property to manually specify the number of buckets.

Uwaga

In a relational data mining solution, you specify the number of buckets by setting the value of the DiscretizationBucketCount property. This property defaults to 5.

For more information about discretization methods in data mining solutions, see Discretization Methods (Data Mining).

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.