public enum ErrorSummation extends Enum<ErrorSummation>
Enum Constant and Description |
---|
QUADRATURE
Combines errors by addition in quadrature.
|
SIMPLE
Combines errors by simple addition.
|
Modifier and Type | Method and Description |
---|---|
abstract double |
combine(double e1,
double e2)
Combines two error values to produce a threshold value for separation.
|
abstract double |
combineSquared(double e1,
double e2)
Returns the square of the result of the
combine method. |
String |
getDescription()
Returns a short human-readable description of the combination method.
|
String |
getTail()
Returns (possibly empty) text suitable for appending to a matcher
description.
|
static ErrorSummation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorSummation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorSummation SIMPLE
public static final ErrorSummation QUADRATURE
public static ErrorSummation[] values()
for (ErrorSummation c : ErrorSummation.values()) System.out.println(c);
public static ErrorSummation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract double combine(double e1, double e2)
e1
- first errore2
- second errorpublic abstract double combineSquared(double e1, double e2)
combine
method.
This method is provided in case there is a more efficient implementation than the obvious one.
e1
- first errore2
- second errorcombine(e1,e2)*combine(e1,e2)
public String getDescription()
public String getTail()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.