medpy.filter.IntensityRangeStandardization.IntensityRangeStandardization.linear_model

static IntensityRangeStandardization.linear_model(x, y)[source]

Returns a linear model transformation function fitted on the two supplied points. y = m*x + b Note: Assumes that slope > 0, otherwise division through zero might occur.