extremes: extremes

extremesR Documentation

extremes

Description

Min/max values for any combination of float/numeric vector(s)/matri[x|ces].

Usage

## S4 method for signature 'float32'
min(x, ..., na.rm = FALSE)

## S4 method for signature 'float32'
max(x, ..., na.rm = FALSE)

## S4 method for signature 'float32'
which.min(x)

## S4 method for signature 'float32'
which.max(x)

Arguments

x

A float matrix.

...

Additional elements (numeric/float vectors/matrices) to sum.

na.rm

should NA's be removed?

Details

If there are any elements in ..., all elements in the list will first be summed in their native precision, then converted to double precision so they can be combined with base::sum(). The final result will be cast to single precision if ... contains only integer and/or float objects. Otherwise, the return will be double precision.

Value

A single value.

Examples

library(float)
x = flrunif(10, 3)

min(x)
min(x, 1)


float documentation built on Feb. 16, 2023, 6:43 p.m.