smooth

clustertools.util.recipes.smooth(x, y, dx, bintype='num', median=False)[source]

Smooth a profile

Parameters:
x,yfloat

coordinates from which to measure the mean profile

dxfloat

width of x smoothening bin

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)

Returns:
x_binfloat

x values of mean profile

y_binfloat

y values of mean profile

y_sigfloat

dispersion about the mean profile

Other Parameters:
dxfloat

width of smoothening bin