Package jspecview.common
Class IntegralData
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Measurement>
,Collection<Measurement>
,List<Measurement>
,RandomAccess
,AnnotationData
from IntegralGraph
a data structure for integration settings
- Author:
- Bob Hanson hansonr@stolaf.edu
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
static final double
static final double
Fields inherited from class jspecview.common.MeasurementData
myParams, precision, spec, units
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionIntegralData
(double integralMinY, double integralOffset, double integralRange, Spectrum spec) IntegralData
(Spectrum spec, Parameters p) -
Method Summary
Modifier and TypeMethodDescriptionaddIntegralRegion
(double x1, double x2) void
INTEGRATION MARK list where list is a comma-separated list of ppm1-ppm2 with :x.x added to normalize one of them and starting with 0-0 clears the integrationvoid
void
clear()
void
dispose()
String[]
void
double
static Lst<Annotation>
getIntegrationRatiosFromString
(Spectrum spec, String key_values) Parses x-coordinates and values from a string and returns them asIntegrationRatio
objectsString[][]
getMeasurementListArray
(String units) double[][]
double
double
double
getPercentYValueAt
(double x) remove
(int i) void
setMinimumIntegral
(double val) void
setSelectedIntegral
(Measurement integral, double val) void
setSpecShift
(double dx) void
shiftY
(int yOld, int yNew, int yPixel0, int yPixels) void
update
(double integralMinY, double integralOffset, double integralRange) minY is ignoredvoid
update
(Parameters parameters) Methods inherited from class jspecview.common.MeasurementData
clear, find, getAType, getData, getGraphSetKey, getParameters, getSpectrum, getState, isDialog, isVisible, setGraphSetKey, setState
Methods inherited from class java.util.ArrayList
addAll, addAll, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Field Details
-
DEFAULT_OFFSET
public static final double DEFAULT_OFFSET- See Also:
-
DEFAULT_RANGE
public static final double DEFAULT_RANGE- See Also:
-
DEFAULT_MINY
public static final double DEFAULT_MINY- See Also:
-
-
Constructor Details
-
IntegralData
public IntegralData(double integralMinY, double integralOffset, double integralRange, Spectrum spec) - Parameters:
integralMinY
- not usedintegralOffset
-integralRange
-spec
-
-
IntegralData
-
-
Method Details
-
getPercentMinimumY
public double getPercentMinimumY() -
getPercentOffset
public double getPercentOffset() -
getIntegralFactor
public double getIntegralFactor() -
update
-
update
public void update(double integralMinY, double integralOffset, double integralRange) minY is ignored- Parameters:
integralMinY
-integralOffset
-integralRange
-
-
addIntegralRegion
- Parameters:
x1
- NaN to clearx2
- NaN to split- Returns:
- new integral region or null
-
setSpecShift
public void setSpecShift(double dx) - Specified by:
setSpecShift
in interfaceAnnotationData
- Overrides:
setSpecShift
in classMeasurementData
-
addMarks
INTEGRATION MARK list where list is a comma-separated list of ppm1-ppm2 with :x.x added to normalize one of them and starting with 0-0 clears the integration- Parameters:
ppms
-
-
calculateIntegral
-
getIntegrationRatiosFromString
Parses x-coordinates and values from a string and returns them asIntegrationRatio
objects- Parameters:
spec
-key_values
- "x:value,x:value,x:value..."- Returns:
- JmolList
object representing integration ratios
-
getXYCoords
-
getPercentYValueAt
public double getPercentYValueAt(double x) - Parameters:
x
-- Returns:
- FRACTIONAL value * 100
-
dispose
public void dispose() -
setSelectedIntegral
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<Measurement>
- Specified by:
clear
in interfaceList<Measurement>
- Overrides:
clear
in classArrayList<Measurement>
-
remove
- Specified by:
remove
in interfaceList<Measurement>
- Overrides:
remove
in classLst<Measurement>
-
getBitSet
-
getMeasurementListArray
- Overrides:
getMeasurementListArray
in classMeasurementData
-
getMeasurementListArrayReal
-
getDataHeader
- Overrides:
getDataHeader
in classMeasurementData
-
shiftY
public void shiftY(int yOld, int yNew, int yPixel0, int yPixels) -
autoIntegrate
public void autoIntegrate() -
getInfo
-
setMinimumIntegral
public void setMinimumIntegral(double val)
-