C# 클래스 CSMSL.Tolerance

파일 보기 프로젝트 열기: dbaileychess/CSMSL 1 사용 예제들

공개 메소드들

메소드 설명
CalculatePrecursorMassError ( double theoreticalMass, double observedMass, int &nominalMassOffset, double &adjustedObservedMass, double difference = Constants.C13C12Difference, ToleranceUnit type = ToleranceUnit.PPM ) : Tolerance
FromDA ( double value, ToleranceType toleranceType = ToleranceType.PlusAndMinus ) : Tolerance
FromMMU ( double value, ToleranceType toleranceType = ToleranceType.PlusAndMinus ) : Tolerance
FromPPM ( double value, ToleranceType toleranceType = ToleranceType.PlusAndMinus ) : Tolerance
GetMaximumValue ( double mean ) : double

Gets the maximum value that is still within this tolerance

GetMinimumValue ( double mean ) : double

Gets the minimum value that is still within this tolerance

GetRange ( double mean ) : DoubleRange

Gets the range of values encompassed by this tolerance

GetTolerance ( double experimental, double theoretical, ToleranceUnit type ) : double
ToString ( ) : string
Tolerance ( ToleranceUnit unit, double value, ToleranceType type = ToleranceType.PlusAndMinus ) : System

Creates a new tolerance given a unit, value, and whether the tolerance is ±

Tolerance ( ToleranceUnit unit, double experimental, double theoretical, ToleranceType type = ToleranceType.PlusAndMinus ) : System

Creates a new tolerance given a unit, two points (one experimental and one theoretical), and whether the tolerance is ±

Tolerance ( string s ) : System

Calculates a tolerance from the string representation

i.e., "10 PPM", "-+10 PPM", "5 DA", "±10 MMU", etc...

Within ( double experimental, double theoretical ) : bool

Indicates if the two values provided are within this tolerance

메소드 상세

CalculatePrecursorMassError() 공개 정적인 메소드

public static CalculatePrecursorMassError ( double theoreticalMass, double observedMass, int &nominalMassOffset, double &adjustedObservedMass, double difference = Constants.C13C12Difference, ToleranceUnit type = ToleranceUnit.PPM ) : Tolerance
theoreticalMass double
observedMass double
nominalMassOffset int
adjustedObservedMass double
difference double
type ToleranceUnit
리턴 Tolerance

FromDA() 공개 정적인 메소드

public static FromDA ( double value, ToleranceType toleranceType = ToleranceType.PlusAndMinus ) : Tolerance
value double
toleranceType ToleranceType
리턴 Tolerance

FromMMU() 공개 정적인 메소드

public static FromMMU ( double value, ToleranceType toleranceType = ToleranceType.PlusAndMinus ) : Tolerance
value double
toleranceType ToleranceType
리턴 Tolerance

FromPPM() 공개 정적인 메소드

public static FromPPM ( double value, ToleranceType toleranceType = ToleranceType.PlusAndMinus ) : Tolerance
value double
toleranceType ToleranceType
리턴 Tolerance

GetMaximumValue() 공개 메소드

Gets the maximum value that is still within this tolerance
public GetMaximumValue ( double mean ) : double
mean double
리턴 double

GetMinimumValue() 공개 메소드

Gets the minimum value that is still within this tolerance
public GetMinimumValue ( double mean ) : double
mean double
리턴 double

GetRange() 공개 메소드

Gets the range of values encompassed by this tolerance
public GetRange ( double mean ) : DoubleRange
mean double The mean value
리턴 DoubleRange

GetTolerance() 공개 정적인 메소드

public static GetTolerance ( double experimental, double theoretical, ToleranceUnit type ) : double
experimental double
theoretical double
type ToleranceUnit
리턴 double

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Tolerance() 공개 메소드

Creates a new tolerance given a unit, value, and whether the tolerance is ±
public Tolerance ( ToleranceUnit unit, double value, ToleranceType type = ToleranceType.PlusAndMinus ) : System
unit ToleranceUnit The units for this tolerance
value double The numerical value of the tolerance
type ToleranceType Whether the tolerance is full or half width
리턴 System

Tolerance() 공개 메소드

Creates a new tolerance given a unit, two points (one experimental and one theoretical), and whether the tolerance is ±
public Tolerance ( ToleranceUnit unit, double experimental, double theoretical, ToleranceType type = ToleranceType.PlusAndMinus ) : System
unit ToleranceUnit The units for this tolerance
experimental double The experimental value
theoretical double The theoretical value
type ToleranceType Whether the tolerance is full or half width
리턴 System

Tolerance() 공개 메소드

Calculates a tolerance from the string representation

i.e., "10 PPM", "-+10 PPM", "5 DA", "±10 MMU", etc...

public Tolerance ( string s ) : System
s string
리턴 System

Within() 공개 메소드

Indicates if the two values provided are within this tolerance
public Within ( double experimental, double theoretical ) : bool
experimental double The experimental value
theoretical double The theoretical value
리턴 bool