fda (version 6.1.8)

zerofind: Does the range of the input contain 0?

Description

Returns TRUE if range of the argument includes 0 and FALSE if not.

Usage

zerofind(fmat)

Value

A logical value TRUE or FALSE.

Arguments

fmat

An object from which 'range' returns two numbers.

References

Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.

See Also

Examples

Run this code
zerofind(1:5)
# FALSE
zerofind(0:3)
# TRUE 

Run the code above in your browser using DataLab