Description Usage Arguments Details Value Methods Author(s) See Also Examples
Function that converts an object containing probability values into a filtered object according to a pre-defined threshold(s).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## S4 method for signature 'numeric'
FilteringTransformation(data, threshold)
## S4 method for signature 'matrix'
FilteringTransformation(data, threshold)
## S4 method for signature 'data.frame'
FilteringTransformation(data, threshold)
## S4 method for signature 'array'
FilteringTransformation(data, threshold)
## S4 method for signature 'RasterLayer'
FilteringTransformation(data, threshold)
## S4 method for signature 'RasterStack'
FilteringTransformation(data, threshold)
|
data |
a numeric vector, a |
threshold |
a numeric value or a vector containing the threshold to be used for converting data. |
If data is a vector or a raster object, then the threshold should be a numeric value.
If data is matrix,dataframe or rasterStack, then the threshold should have, in theory, as many values as the number of columns or layers to transform.
In the particular case that the data to convert is a matrix
/data.frame
with several columns or a RasterStack
with several layers and the threshold is a single numeric value, the same threshold will be applied to all columns (resp. layers).
An object of the same class than data
with the values of data if suprerior to threshold
and 0 if not.
signature(data = "data.frame")
signature(data = "matrix")
signature(data = "numeric")
signature(data = "RasterBrick")
signature(data = "RasterLayer")
signature(data = "RasterStack")
Wilfried Thuiller, Damien Georges
1 2 3 4 | xx <- rnorm(50,10)
yy <- FilteringTransformation(xx, 10)
cbind(xx,yy)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.