共用方式為


DimensionAttribute.DiscretizationMethod 屬性

定義

取得或設定用於進行離散化的方法。

public Microsoft.AnalysisServices.DiscretizationMethod DiscretizationMethod { get; set; }
member this.DiscretizationMethod : Microsoft.AnalysisServices.DiscretizationMethod with get, set
Public Property DiscretizationMethod As DiscretizationMethod

屬性值

DiscretizationMethod 物件,其中包含要用於離散化的方法。

備註

DiscretizationMethod 的值會決定 DimensionAttribute 的值如何離散化,或組織成一組特定的群組。 這個屬性可以設定為下列值:值描述----- -----------自動相當於採礦結構資料行的 AUTOMATIC 離散化方法。 EqualAreas 相當於採礦結構資料行的EQUAL_AREAS離散化方法。 叢集 相當於採礦結構資料行的 CLUSTERS 離散化方法。 臨界值 相當於採礦結構資料行的 THRESHOLDS 離散化方法。 EqualRanges 相當於採礦結構資料行的EQUAL_RANGES離散化方法。

若為資料採礦,可以使用不同的方法離散化資料,取決於您的資料為關聯式或儲存在 OLAP 維度。 針對 OLAP 資料採礦,演算法會使用下列方程式自動計算要產生的貯體數目,其中 n 是資料行中相異值的數目:Buckets = sqrt (n) 如果您不想 Analysis Services 計算貯體數目,您可以使用 ?DiscretizationBucketCount 屬性可手動指定貯體數目。

注意:在關聯式資料採礦方案中,您可以藉由設定 DiscretizationBucketCount 屬性的值來指定貯體數目。 這個屬性的預設值是 5。

如需資料採礦解決方案中離散化方法的詳細資訊,請參閱離散化方法 (資料採礦) 。

適用於