-
statisticParameters
Object
百分位數統計參數。當 statisticType 設置為
percentile-continuous
或percentile-discrete
時,必須設置此屬性。-
類型 說明 value Number百分數值。這應該是 0 到 1 之間的十進製值。
orderBy String可選的 指定
ASC
(升序)或DESC
(降序)來控製數據的順序。例如,在從 1 到 10 的 10 個值的數據集中,orderBy
設置為升序 (ASC
) 的 0.9 的百分位值為 9,但當orderBy
設置為降序 (DESC
)結果為 2。默認值為ASC
。可能的值:"ASC"|"DESC"
默認值:null
屬性:
例子:
let query = layer.createQuery(); // find the median value in descending order for response_rate field // for all features stored in the layer and order query.outStatistics = [{ statisticType: "percentile-continuous", statisticParameters: { value: 0.5, orderBy: "DESC" }, onStatisticField: "response_rate", outStatisticFieldName: "Resp_rate_median" }]; // query the features for the median value statistics against the values // stored in the response_rate field queryFeatures(query);
// Query the percentile for response time in descending order for all features in the layer // group the percentile by Division and unit fields let query = layer.createQuery(); query.orderByFields = ["Division, Unit"]; query.groupByFieldsForStatistics = ["Division, Unit"]; query.outStatistics = [{ statisticType: "percentile-discrete", statisticParameters: { value: 0.67, orderBy: "DESC" }, onStatisticField: "response_time", outStatisticFieldName: "response_time_percentile" }]; queryFeatures(query);
-
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/rest/support/StatisticDefinition"], (StatisticDefinition) => { /* code goes here */ });
ESM:
import StatisticDefinition from "@arcgis/core/rest/support/StatisticDefinition";
類:
esri/rest/support/StatisticDefinition
繼承: StatisticDefinition > Accessor
自從:用於 JavaScript 4.0 的 ArcGIS API
用法說明
StatisticDefinition.statisticParameters
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS StatisticDefinition.statisticType用法及代碼示例
- JavaScript ArcGIS StatisticDefinition.onStatisticField用法及代碼示例
- JavaScript ArcGIS StatisticDefinition用法及代碼示例
- JavaScript ArcGIS StreamLayer.timeOffset用法及代碼示例
- JavaScript String.prototype.toLocaleLowerCase()用法及代碼示例
- JavaScript String slice()用法及代碼示例
- JavaScript String length用法及代碼示例
- JavaScript String padStart()用法及代碼示例
- JavaScript ArcGIS StreamLayer layerview-create-error事件用法及代碼示例
- JavaScript String strike()用法及代碼示例
- JavaScript ArcGIS StreamLayer.minScale用法及代碼示例
- JavaScript ArcGIS StreamLayerView.queryFeatureCount用法及代碼示例
- JavaScript String fromCodePoint()用法及代碼示例
- JavaScript String blink()用法及代碼示例
- JavaScript String repeat()用法及代碼示例
- JavaScript ArcGIS Stop用法及代碼示例
- JavaScript ArcGIS StreamLayer.purgeOptions用法及代碼示例
- JavaScript String charCodeAt()用法及代碼示例
- JavaScript String fontcolor()用法及代碼示例
- JavaScript String endsWith()用法及代碼示例
- JavaScript ArcGIS StreamLayerView.queryObjectIds用法及代碼示例
- JavaScript String substr()用法及代碼示例
- JavaScript String toLocaleLowerCase()用法及代碼示例
- JavaScript ArcGIS StreamLayer.fields用法及代碼示例
- JavaScript ArcGIS StreamLayer.effect用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 StatisticDefinition.statisticParameters。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。