Package jspecview.common
Class IntegralData
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Measurement>,Collection<Measurement>,List<Measurement>,RandomAccess,SequencedCollection<Measurement>,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 doublestatic final doublestatic final doubleFields inherited from class jspecview.common.MeasurementData
myParams, precision, spec, unitsFields 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) voidINTEGRATION 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 integrationvoidvoidclear()voiddispose()String[]voiddoublestatic Lst<Annotation> getIntegrationRatiosFromString(Spectrum spec, String key_values) Parses x-coordinates and values from a string and returns them asIntegrationRatioobjectsString[][]getMeasurementListArray(String units) double[][]doubledoubledoublegetPercentYValueAt(double x) remove(int i) voidsetMinimumIntegral(double val) voidsetSelectedIntegral(Measurement integral, double val) voidsetSpecShift(double dx) voidshiftY(int yOld, int yNew, int yPixel0, int yPixels) voidupdate(double integralMinY, double integralOffset, double integralRange) minY is ignoredvoidupdate(Parameters parameters) Methods inherited from class jspecview.common.MeasurementData
clear, find, getAType, getData, getGraphSetKey, getParameters, getSpectrum, getState, isDialog, isVisible, setGraphSetKey, setStateMethods inherited from class java.util.ArrayList
addAll, addAll, addFirst, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
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:
setSpecShiftin interfaceAnnotationData- Overrides:
setSpecShiftin 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 asIntegrationRatioobjects- 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:
clearin interfaceCollection<Measurement>- Specified by:
clearin interfaceList<Measurement>- Overrides:
clearin classArrayList<Measurement>
-
remove
- Specified by:
removein interfaceList<Measurement>- Overrides:
removein classLst<Measurement>
-
getBitSet
-
getMeasurementListArray
- Overrides:
getMeasurementListArrayin classMeasurementData
-
getMeasurementListArrayReal
-
getDataHeader
- Overrides:
getDataHeaderin classMeasurementData
-
shiftY
public void shiftY(int yOld, int yNew, int yPixel0, int yPixels) -
autoIntegrate
public void autoIntegrate() -
getInfo
-
setMinimumIntegral
public void setMinimumIntegral(double val)
-