From ecc65f6557cd29c28977e99611dbf587e2c582b0 Mon Sep 17 00:00:00 2001 From: "katharina.starzer@eodc.eu" Date: Fri, 15 Nov 2024 13:01:59 +0100 Subject: [PATCH] add cummax,cumsum,cumproduct .json --- proposals/cummax.json => cummax.json | 0 proposals/cumproduct.json => cumproduct.json | 0 proposals/cumsum.json => cumsum.json | 0 proposals/cummin.json | 102 ------------------- 4 files changed, 102 deletions(-) rename proposals/cummax.json => cummax.json (100%) rename proposals/cumproduct.json => cumproduct.json (100%) rename proposals/cumsum.json => cumsum.json (100%) delete mode 100644 proposals/cummin.json diff --git a/proposals/cummax.json b/cummax.json similarity index 100% rename from proposals/cummax.json rename to cummax.json diff --git a/proposals/cumproduct.json b/cumproduct.json similarity index 100% rename from proposals/cumproduct.json rename to cumproduct.json diff --git a/proposals/cumsum.json b/cumsum.json similarity index 100% rename from proposals/cumsum.json rename to cumsum.json diff --git a/proposals/cummin.json b/proposals/cummin.json deleted file mode 100644 index d84612e3..00000000 --- a/proposals/cummin.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "id": "cummin", - "summary": "Cumulative minima", - "description": "Finds cumulative minima of an array of numbers. Every computed element is equal to the smaller one between the current element and the previously computed element. The returned array and the input array have always the same length.\n\nBy default, no-data values are skipped, but stay in the result. Setting the `ignore_nodata` flag to `true` makes that once a no-data value (`null`) is reached all following elements are set to `null` in the result.", - "categories": [ - "math > cumulative" - ], - "experimental": true, - "parameters": [ - { - "name": "data", - "description": "An array of numbers.", - "schema": { - "type": "array", - "items": { - "type": [ - "number", - "null" - ] - } - } - }, - { - "name": "ignore_nodata", - "description": "Indicates whether no-data values are ignored or not and ignores them by default. Setting this flag to `false` considers no-data values so that `null` is set for all the following elements.", - "schema": { - "type": "boolean" - }, - "default": true, - "optional": true - } - ], - "returns": { - "description": "An array with the computed cumulative minima.", - "schema": { - "type": "array", - "items": { - "type": [ - "number", - "null" - ] - } - } - }, - "examples": [ - { - "arguments": { - "data": [ - 5, - 3, - 1, - 3, - 5 - ] - }, - "returns": [ - 5, - 3, - 1, - 1, - 1 - ] - }, - { - "arguments": { - "data": [ - 5, - 3, - null, - 1, - 5 - ] - }, - "returns": [ - 5, - 3, - null, - 1, - 1 - ] - }, - { - "arguments": { - "data": [ - 5, - 3, - null, - 1, - 5 - ], - "ignore_nodata": false - }, - "returns": [ - 5, - 3, - null, - null, - null - ] - } - ] -} \ No newline at end of file