quantile_or_inf: Calculate the quantile if there is no infinite or missing...

View source: R/math_functions.R

quantile_or_infR Documentation

Calculate the quantile if there is no infinite or missing value. Return -Inf in the other case.

Description

Calculate the quantile if there is no infinite or missing value. Return -Inf in the other case.

Usage

quantile_or_inf(x, q_ratio, inaccessible_states = 0)

Arguments

x

numeric vector whose quantile is wanted.

q_ratio

Numeric in [0,1]. Probability of the quantile.

inaccessible_states

Numeric in [0,1]. Tolerance of inaccessible states. For example if equal to 0.9 we delete the state if this states is inaccessible by 90% of scenarios.


dhia-gharsallaoui/watervalues documentation built on Dec. 1, 2022, 5:18 a.m.