C# Class ImsInformed.Scoring.ScoreUtil

The input util.
Mostrar archivo Open project: PNNL-Comp-Mass-Spec/IMS-Informed-Library

Public Methods

Method Description
MapToZeroOneExponential ( double input, double a, bool inverseMapping = false ) : double
MapToZeroOneExponential ( double input, double x0, double y0, bool inverseMapping = false ) : double

The map to zero one using 1- e^-ax

MapToZeroOneTrignometry ( double input, bool inverseMapping, double ninetyPercentX ) : double

Map a double from 0 to inifinity to [0,1] Range

MoreLikelyThanTargeted ( ObservedPeak a, ObservedPeak b, LikelihoodFunc likelihoodFunc, IImsTarget target ) : bool

The more likely than targeted.

MoreLikelyThanUntargeted ( ObservedPeak a, ObservedPeak b, LikelihoodFunc likelihoodFunc ) : bool

The more likely than.

Private Methods

Method Description
CompareFeatureScore ( PeakScores a, PeakScores b, LikelihoodFunc likelihoodFunc ) : int

The compare feature input.

Method Details

MapToZeroOneExponential() public static method

public static MapToZeroOneExponential ( double input, double a, bool inverseMapping = false ) : double
input double
a double
inverseMapping bool
return double

MapToZeroOneExponential() public static method

The map to zero one using 1- e^-ax
///
public static MapToZeroOneExponential ( double input, double x0, double y0, bool inverseMapping = false ) : double
input double /// The input. ///
x0 double /// The x 0. ///
y0 double /// The y 0. ///
inverseMapping bool
return double

MapToZeroOneTrignometry() public static method

Map a double from 0 to inifinity to [0,1] Range
public static MapToZeroOneTrignometry ( double input, bool inverseMapping, double ninetyPercentX ) : double
input double /// The input. ///
inverseMapping bool /// The inverse mapping. ///
ninetyPercentX double /// The X value to map to 0.9. Used to define a "good" input. ///
return double

MoreLikelyThanTargeted() public static method

The more likely than targeted.
///
public static MoreLikelyThanTargeted ( ObservedPeak a, ObservedPeak b, LikelihoodFunc likelihoodFunc, IImsTarget target ) : bool
a ImsInformed.Domain.DirectInjection.ObservedPeak /// The a. ///
b ImsInformed.Domain.DirectInjection.ObservedPeak /// The b. ///
likelihoodFunc LikelihoodFunc /// The likelihood func. ///
target IImsTarget /// The target. ///
return bool

MoreLikelyThanUntargeted() public static method

The more likely than.
public static MoreLikelyThanUntargeted ( ObservedPeak a, ObservedPeak b, LikelihoodFunc likelihoodFunc ) : bool
a ImsInformed.Domain.DirectInjection.ObservedPeak /// The a. ///
b ImsInformed.Domain.DirectInjection.ObservedPeak /// The b. ///
likelihoodFunc LikelihoodFunc /// The likelyhood func. ///
return bool