mean_prof

clustertools.util.recipes.mean_prof(x, y, nbin=10, bintype='num', steptype='linear', median=False, x_lower=None, x_mean=None, x_upper=None)[source]

Calculate mean profile of parameter y that depends on x

Parameters:
x,yfloat

coordinates from which to measure the mean profile

nbinint

number of bins

bintypestr

can be bins of fixed size (‘fix’) or equal number of stars (‘num’) (default: num)

steptypestr

for fixed size arrays, set step size to ‘linear’ or ‘log’

medianbool

find median instead of mean (Default: False)

x_lower,x_mean,x_upperfloat

preset lower limit, mean value, and upper limit bins

Returns:
x_binfloat

x values of mean profile

y_binfloat

y values of mean profile

y_sigfloat

dispersion about the mean profile