nonneg_double_scalar: Non-negative double scalar S7 property

nonneg_double_scalarR Documentation

Non-negative double scalar S7 property

Description

S7 property accepting a single finite double greater than or equal to zero, i.e. in [0, \infty).

Usage

nonneg_double_scalar

Value

An S7 property object.

Author(s)

EDG

Examples

Penalty <- S7::new_class("Penalty", properties = list(alpha = nonneg_double_scalar))
Penalty(alpha = 0)@alpha
try(Penalty(alpha = -1))

rtemis.core documentation built on Sept. 20, 2026, 9:06 a.m.