Learn R Programming

TauStar (version 1.1.7)

isProbVector: Check if Vector of Probabilities

Description

Checks if the input vector has entries that sum to 1 and are non-negative

Usage

isProbVector(probs)

Value

TRUE if conditions are met, FALSE if otherwise

Arguments

probs

the probability vector to check