Calculate Schechter Function Binned Variables

Share:

Description

This function calculates a Schechter function fit to a set of input data.

Usage

1
2
3
schechter.bin(data, vmax = NA, range = range(data), lim1 = NA, 
              lim2 = NA, numlim = 1, volume = max(vmax), bw = 0.1, 
              null = 1E-9)

Arguments

data

input data vector

vmax

vector of maximum comoving volumes within which object could lie

range

data range of interest

lim1

lower data limit for fitting

lim2

upper data limit for fitting

numlim

lower number (per bin) limit for fitting

volume

total volume across which the data has been collected (default 1 if vmax = NA)

bw

bin width sizes

null

value of null

Value

bins

bin boundaries

binmid

bin midpoints

binlo

bin lower boundaries

binhi

bin upper boundaries

num

number per bin (note: if using vmax values, these are weights)

den

density per bin

err

error per bin

errlo

lower error limit

errhi

upper error limit

fitbinmid

bin midpoints after data limits applied

fitbinlo

bin lower boundaries after data limits applied

fitbinhi

bin upper boundaries after data limits applied

fitnum

number per bin after data limits applied (note: if using vmax values, these are weights)

fitden

density per bin after data limits applied

fiterr

error per bin after data limits applied

fiterrlo

lower error limit after data limits applied

fiterrhi

upper error limit after data limits applied

Author(s)

Lee Kelvin <lee.kelvin@uibk.ac.at>

References

Blanton M. R., Lupton R. H., Schlegel D. J., Strauss M. A., Brinkmann J., Fukugita M., Loveday J., 2005, ApJ, 631, 208

Driver S. P., Popescu C. C., Tuffs R. J., Graham A. W., Liske J., Baldry I., 2008, ApJ, 678, L101

Baldry I. K. Driver S. P., Loveday J., et al., 2012, MNRAS, 421, 621

See Also

The astronomy package: astro.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.