| Math.fasp {spatstat.explore} | R Documentation |
S3 Group Generic Methods for Function Arrays
Description
These are group generic methods for objects of class "fasp", which
allows for usual mathematical functions and operators to be applied
directly to function arrays. See Details for a list of implemented functions.
Usage
## S3 methods for group generics have prototypes:
Math(x, ...)
Ops(e1, e2)
Complex(z)
Summary(..., na.rm=FALSE, drop=TRUE)
Arguments
x, z, e1, e2 |
objects of class |
... |
further arguments passed to methods. |
na.rm |
Logical value specifying whether missing values should be removed. |
Details
Below is a list of mathematical functions and operators which are
defined for objects of class "fasp".
The methods are implemented using eval.fasp, which tries
to harmonise the functions via harmonise.fv if they aren't
compatible to begin with.
Group
"Math":-
abs,sign,sqrt,
floor,ceiling,trunc,
round,signif -
exp,log,expm1,log1p,
cos,sin,tan,
cospi,sinpi,tanpi,
acos,asin,atancosh,sinh,tanh,
acosh,asinh,atanh -
lgamma,gamma,digamma,trigamma -
cumsum,cumprod,cummax,cummin
-
Group
"Ops":-
"+","-","*","/","^","%%","%/%" -
"&","|","!" -
"==","!=","<","<=",">=",">"
-
Group
"Summary":-
all,any -
sum,prod -
min,max -
range
-
Group
"Complex":-
Arg,Conj,Im,Mod,Re
-
For the Ops group, one of the arguments is permitted to be
a single atomic value, or a function table, instead of a function array.
Author(s)
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner rolfturner@posteo.net and Ege Rubak rubak@math.aau.dk.
See Also
eval.fasp for evaluating expressions involving function arrays.
Examples
## convert array of K functions to array of L functions
K <- alltypes(amacrine, "K")
L <- sqrt(K/pi)