Learn R Programming

UPMASK (version 1.0)

analyse_randomKde2d: Perform analysis of random 2d distributions

Description

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

Usage

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.

Examples

Run this code
# Runs the analysis on random fields
toyRes <- analyse_randomKde2d(100, 200, 100, 100, showStats=TRUE)

# Clean the environment
rm(toyRes)

Run the code above in your browser using DataLab