| | 245 | |
| | 246 | |
| | 247 | == Variância == |
| | 248 | |
| | 249 | Retorna a variância entre os valores do atributo das ocorrências que interceptam o objeto monitorado ou sua área de influência no intervalo de tempo informado. |
| | 250 | |
| | 251 | |
| | 252 | ==== Assinatura ==== |
| | 253 | |
| | 254 | {{{ |
| | 255 | terrama2.occurrence.aggregation.variance("dataSeriesName", buffer, "dateFilter", "attribute", aggregationStatistic, aggregationBuffer, "restriction") |
| | 256 | }}} |
| | 257 | |
| | 258 | |
| | 259 | ==== Parâmetros ==== |
| | 260 | |
| | 261 | - ''dataSeriesName'': String com o nome da série de dados de ocorrências. |
| | 262 | - ''buffer'': Objeto Buffer para ser aplicado ao objeto monitorado. (Ver [wiki:programmersguide/architecture/services/analysis/python/buffer Buffer] ) |
| | 263 | - ''dateFilter'': String com o intervalo de tempo para filtrar as ocorrências. (Ver [wiki:programmersguide/architecture/services/analysis/python/timeUnit Unidades de tempo] ) |
| | 264 | - ''attribute'': String com o nome do atributo da ocorrência que deve ser utilizado para recuperar os valores, o atributo deve ser do tipo numérico (Ex. Integer, Float, Double, Long). |
| | 265 | - ''aggregationStatistic'': Tipo de operador estatístico a ser utilizado para selecionar o valor do atributo para as ocorrências agregadas. |
| | 266 | - ''aggregationBuffer'': Objeto Buffer para agregação. (Ver [wiki:programmersguide/architecture/services/analysis/python/buffer Buffer] ) |
| | 267 | - ''restriction'': String com a restrição SQL a ser aplicada. |
| | 268 | |
| | 269 | |
| | 270 | ==== Exemplo de uso ==== |
| | 271 | |
| | 272 | {{{ |
| | 273 | buffer = Buffer() |
| | 274 | aggregationBuffer = Buffer(BufferType.object_plus_buffer, 2., "km") |
| | 275 | x = occurrence.aggregation.variance("ocorrencias", buffer, "1d", "Intensidade", Statistic.standard_deviation, aggregationBuffer, "UF = 'AM'") |
| | 276 | }}} |
| | 277 | |
| | 278 | |
| | 279 | ---- |