Learn R Programming

algebraic.dist (version 0.9.1)

supremum.finite_set: Return the supremum of the finite set.

Description

Return the supremum of the finite set.

Usage

# S3 method for finite_set
supremum(object)

Value

Numeric; the maximum value(s).

Arguments

object

A finite set.

Examples

Run this code
fs <- finite_set$new(c(1, 3, 5, 7))
supremum(fs) # 7

Run the code above in your browser using DataLab