Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • CSIndicators CSIndicators
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • CSIndicatorsCSIndicators
  • Merge requests
  • !22

Allow to choose a window of time steps in Threshold

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Nuria Pérez-Zanón requested to merge develop-ThresholdWindow into master May 10, 2021
  • Overview 1
  • Commits 3
  • Pipelines 3
  • Changes 5

Hi @cdelgado

As we talk some time ago, Threshold function may need a parameter to compute quantiles on a temporal window. Parameter 'window' has added in this branch. See the example below for window of length 3. It would be great if you can review it and add some automatic tests.

source("/esarchive/scratch/nperez/git/csindicators/R/Threshold.R")
data <- array(1:(2*3*20), c(member = 2, sdate = 3, time = 20))
thres <- Threshold(data, 0.8, window = 3)

> thres
 [1]  14.6  20.6  26.6  32.6  38.6  44.6  50.6  56.6  62.6  68.6  74.6  80.6
[13]  86.6  92.6  98.6 104.6 110.6 116.6

> quantile(data[,,1:3], 0.8)
 80% 
14.6 

From my side, there is no hurry on reviewing this enhancement. We may need to confirm with other CS member that there is no inconvenience for adding it... I don't think so.

Cheers,

Núria

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: develop-ThresholdWindow