dfexample: Example of fitting a step-wise mass function

Description Usage Arguments Author(s) See Also Examples

View source: R/dfexample.R

Description

This function generates n mock galaxies with masses and observing errors, drawn from a custom Schechter function and predefined effective volume function. It then uses dffit to recover the inpu Schechter function from the noisy data.

Usage

1
dfexample(case = 1, seed = 1)

Arguments

case

is an integer from 1 to 4, specifying the example. Choose 1 for an example of fitting a Schechter function mock data drawn from a Schechter function. Choose 2 to fit a Schechter function to mock data drawn from a Schechter function in the presence of large-scale structure. Choose 3 to fit a quasi non-parametric mass function to mock data drawn from a modified Scheckter function. Choose 4 to fit a 2D analytic distribution function to mock data in the the mass-specific angular momentum plane.

seed

A positive integer used as seed for the random number generator.

Author(s)

Danail Obreschkow

See Also

See dffit.

Examples

1
2
# Run basic example
dfexample(1)

obreschkow/dftools documentation built on June 25, 2021, 10:45 p.m.