GetParFeas: Parameter feasibility

View source: R/Distributions_lib.R

GetParFeasR Documentation

Parameter feasibility

Description

Evaluates whether a parameter vector is feasible (for instance, are scale parameters >0 ?)

Usage

GetParFeas(dist, par)

Arguments

dist

character, distribution name

par

numeric vector, parameter vector

Value

A logical.

Examples

# Feasible
GetParFeas('Normal',c(0,1))
# Not feasible because second parameter (standard deviation) is negative
GetParFeas('Normal',c(0,-1))

HydroPortailStats documentation built on Sept. 12, 2024, 9:36 a.m.