arsenal_gear.dist_funcs.binaries.StepFraction

class arsenal_gear.dist_funcs.binaries.StepFraction(fraction: float, mass_bins: Annotated[Quantity, PhysicalType('mass')], stars: StarPopulation)[source]

Bases: Fraction

A simple step function binary fraction, with a binary fraction of 0 below the changeover mass and 1 above the changeover mass

Parameters:

mass (astropy mass unit) – Changeover mass between binary fractions of 0 and 1

binary_fraction() float64[source]

Binary fraction as a function of stellar mass for the step function binary fraction Returns the probability to be in a binary

sample() bool[source]

Determine which stars are primaries

Returns:

Boolean array

Return type:

bool