| | 134 | == Soma == |
| | 135 | |
| | 136 | Retorna a soma dos valores do atributo das ocorrências que interceptam o objeto monitorado ou sua área de influência no intervalo de tempo informado. |
| | 137 | |
| | 138 | ==== Assinatura ==== |
| | 139 | |
| | 140 | {{{ |
| | 141 | terrama2.occurrence.aggregation.sum("dataSeriesName", buffer, "dateFilter", "attribute", aggregationStatistic, aggregationBuffer, "restriction") |
| | 142 | }}} |
| | 143 | |
| | 144 | |
| | 145 | ==== Parâmetros ==== |
| | 146 | |
| | 147 | - ''dataSeriesName'': String com o nome da série de dados de ocorrências. |
| | 148 | - ''buffer'': Objeto Buffer para ser aplicado ao objeto monitorado. (Ver [wiki:programmersguide/architecture/services/analysis/python/buffer Buffer] ) |
| | 149 | - ''dateFilter'': String com o intervalo de tempo para filtrar as ocorrências. (Ver [wiki:programmersguide/architecture/services/analysis/python/timeUnit Unidades de tempo] ) |
| | 150 | - ''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). |
| | 151 | - ''aggregationStatistic'': Tipo de operador estatístico a ser utilizado para selecionar o valor do atributo para as ocorrências agregadas. |
| | 152 | - ''aggregationBuffer'': Objeto Buffer para agregação. (Ver [wiki:programmersguide/architecture/services/analysis/python/buffer Buffer] ) |
| | 153 | - ''restriction'': String com a restrição SQL a ser aplicada. |
| | 154 | |
| | 155 | |
| | 156 | ==== Exemplo de uso ==== |
| | 157 | |
| | 158 | {{{ |
| | 159 | buffer = Buffer() |
| | 160 | aggregationBuffer = Buffer(BufferType.object_plus_buffer, 2., "km") |
| | 161 | x = occurrence.aggregation.sum("ocorrencias", buffer, "1d", "Intensidade", Statistic.max, aggregationBuffer, "UF = 'AM'") |
| | 162 | }}} |
| | 163 | |
| | 164 | |
| | 165 | ---- |
| | 166 | |
| | 167 | |
| 149 | | - ''buffer'': Objeto Buffer para ser aplicado ao objeto monitorado. (Ver [wiki:programmersguide/architecture/services/analysis/python/Buffer Buffer] ) |
| 150 | | - ''dateFilter'': String com o intervalo de tempo para filtrar as ocorrências. (Ver [wiki:programmersguide/architecture/services/analysis/python/timeUnit Unidades de tempo] ) |
| 151 | | - ''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). |
| 152 | | - ''aggregationStatistic'': Tipo de operador estatístico a ser utilizado para selecionar o valor do atributo para as ocorrências agregadas. |
| 153 | | - ''aggregationBuffer'': Objeto Buffer para agregação. (Ver [wiki:programmersguide/architecture/services/analysis/python/buffer Buffer] ) |
| 154 | | - ''restriction'': String com a restrição SQL a ser aplicada. |
| | 183 | - ''buffer'': Objeto Buffer para ser aplicado ao objeto monitorado. (Ver [wiki:programmersguide/architecture/services/analysis/python/buffer Buffer] ) |
| | 184 | - ''dateFilter'': String com o intervalo de tempo para filtrar as ocorrências. (Ver [wiki:programmersguide/architecture/services/analysis/python/timeUnit Unidades de tempo] ) |
| | 185 | - ''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). |
| | 186 | - ''aggregationStatistic'': Tipo de operador estatístico a ser utilizado para selecionar o valor do atributo para as ocorrências agregadas. |
| | 187 | - ''aggregationBuffer'': Objeto Buffer para agregação. (Ver [wiki:programmersguide/architecture/services/analysis/python/buffer Buffer] ) |
| | 188 | - ''restriction'': String com a restrição SQL a ser aplicada. |
| | 189 | |
| 167 | | == Soma == |
| 168 | | |
| 169 | | Retorna a soma dos valores do atributo das ocorrências que interceptam o objeto monitorado ou sua área de influência no intervalo de tempo informado. |
| 170 | | |
| 171 | | ==== Assinatura ==== |
| 172 | | |
| 173 | | {{{ |
| 174 | | terrama2.occurrence.aggregation.sum("dataSeriesName", buffer, "dateFilter", "attribute", aggregationStatistic, aggregationBuffer, "restriction") |
| 175 | | }}} |
| 176 | | |
| 177 | | |
| 178 | | ==== Parâmetros ==== |
| 179 | | |
| 180 | | - ''dataSeriesName'': String com o nome da série de dados de ocorrências. |
| 181 | | - ''buffer'': Objeto Buffer para ser aplicado ao objeto monitorado. (Ver [wiki:programmersguide/architecture/services/analysis/python/buffer Buffer] ) |
| 182 | | - ''dateFilter'': String com o intervalo de tempo para filtrar as ocorrências. (Ver [wiki:programmersguide/architecture/services/analysis/python/timeUnit Unidades de tempo] ) |
| 183 | | - ''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). |
| 184 | | - ''aggregationStatistic'': Tipo de operador estatístico a ser utilizado para selecionar o valor do atributo para as ocorrências agregadas. |
| 185 | | - ''aggregationBuffer'': Objeto Buffer para agregação. (Ver [wiki:programmersguide/architecture/services/analysis/python/buffer Buffer] ) |
| 186 | | - ''restriction'': String com a restrição SQL a ser aplicada. |
| 187 | | |
| 188 | | |
| 189 | | ==== Exemplo de uso ==== |
| 190 | | |
| 191 | | {{{ |
| 192 | | buffer = Buffer() |
| 193 | | aggregationBuffer = Buffer(BufferType.object_plus_buffer, 2., "km") |
| 194 | | x = occurrence.aggregation.sum("ocorrencias", buffer, "1d", "Intensidade", Statistic.max, aggregationBuffer, "UF = 'AM'") |
| 195 | | }}} |
| 196 | | |
| 197 | | |
| 198 | | ---- |
| 199 | | |
| 200 | | |
| 201 | | == Mediana == |
| 202 | | |
| 203 | | Retorna a mediana dos valores do atributo das ocorrências que interceptam o objeto monitorado ou sua área de influência no intervalo de tempo informado. |
| 204 | | |
| 205 | | |
| 206 | | ==== Assinatura ==== |
| 207 | | |
| 208 | | {{{ |
| 209 | | terrama2.occurrence.aggregation.median("dataSeriesName", buffer, "dateFilter", "attribute", aggregationStatistic, aggregationBuffer, "restriction") |
| 210 | | }}} |
| 211 | | |
| 212 | | |
| 213 | | ==== Parâmetros ==== |
| 214 | | |
| 215 | | - ''dataSeriesName'': String com o nome da série de dados de ocorrências. |
| 216 | | - ''buffer'': Objeto Buffer para ser aplicado ao objeto monitorado. (Ver [wiki:programmersguide/architecture/services/analysis/python/buffer Buffer] ) |
| 217 | | - ''dateFilter'': String com o intervalo de tempo para filtrar as ocorrências. (Ver [wiki:programmersguide/architecture/services/analysis/python/timeUnit Unidades de tempo] ) |
| 218 | | - ''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). |
| 219 | | - ''aggregationStatistic'': Tipo de operador estatístico a ser utilizado para selecionar o valor do atributo para as ocorrências agregadas. |
| 220 | | - ''aggregationBuffer'': Objeto Buffer para agregação. (Ver [wiki:programmersguide/architecture/services/analysis/python/buffer Buffer] ) |
| 221 | | - ''restriction'': String com a restrição SQL a ser aplicada. |
| 222 | | |
| 223 | | |
| 224 | | ==== Exemplo de uso ==== |
| 225 | | |
| 226 | | {{{ |
| 227 | | buffer = Buffer() |
| 228 | | aggregationBuffer = Buffer(BufferType.object_plus_buffer, 2., "km") |
| 229 | | x = occurrence.aggregation.median("ocorrencias", buffer, "1d", "Intensidade", Statistic.median, aggregationBuffer, "UF = 'AM'") |
| 230 | | }}} |
| 231 | | |
| 232 | | |
| 233 | | ---- |
| 234 | | |