Description Usage Arguments Value Author(s) Examples
analyse_randomKde2d
will compute statistics from uniformly randomly
created 2D fields based on Kernel Density Estimations (calling the code create_randomKde2d
).
1 2 | analyse_randomKde2d(nfields=100, nstars, maxX, maxY, nKde=50,
showStats=FALSE, returnStats=TRUE)
|
nfields |
an integer with the number of individual field realisations |
nstars |
an integer with the number of stars to consider |
maxX |
the length of the field in X |
maxY |
the length of the field in Y |
nKde |
the number of samplings of the kernel in each direction |
showStats |
a boolean indicating if the user wants to see statistics |
returnStats |
a boolean indicating if the user wants statistics to be returned |
A data frame with the mean
and sd
fields containing the results
of the random field analysis.
Alberto Krone-Martins, Andre Moitinho
1 2 3 4 5 6 | # Runs the analysis on random fields
toyRes <- analyse_randomKde2d(100, 200, 100, 100, showStats=TRUE)
# Clean the environment
rm(toyRes)
|
------ Statistics of the sample random fields -----
Max distance : 3.51974334913833
Min distance : 1.57163294664981
Mean distance : 2.21471115326096
Sd distance : 0.368380836209012
Median distance : 2.15614714426823
MAD distance : 0.324852998007799
---------------------------------------------------
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.