analyse_randomKde2d: Perform analysis of random 2d distributions

Description Usage Arguments Value Author(s) Examples

Description

analyse_randomKde2d will compute statistics from uniformly randomly created 2D fields based on Kernel Density Estimations (calling the code create_randomKde2d).

Usage

1
2
analyse_randomKde2d(nfields=100, nstars, maxX, maxY, nKde=50, 
showStats=FALSE, returnStats=TRUE)

Arguments

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

Value

A data frame with the mean and sd fields containing the results of the random field analysis.

Author(s)

Alberto Krone-Martins, Andre Moitinho

Examples

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)
 

Example output

------ 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 
---------------------------------------------------

UPMASK documentation built on May 2, 2019, 2:39 p.m.