public class CurveTool extends Object
CurveTool class is used for estimation of Full width half maximum.
Modifier and Type | Field and Description |
---|---|
static double |
FWHM_CONSTANT
Constant
FWHM_CONSTANT=2.35482 |
Constructor and Description |
---|
CurveTool(SliceSparseMatrix sliceSparseMatrix)
CurveTool constructor takes object of SliceSparseMatrix class.
|
Modifier and Type | Method and Description |
---|---|
double |
estimateFwhmMs()
estimateFwhmMs method estimates the FWHM for given number of random scans.
|
static double |
normalize(double[] values,
double[] normValues)
normalize method is used for normalizing values by calculating its area and dividing each value
by the area.
|
static float |
normalize(float[] values)
normalize.
|
static double |
normalize(List<SliceSparseMatrix.Triplet> slice,
int leftBound,
int rightBound,
int roundedMz,
double[] referenceEIC)
normalize method is used for normalizing EIC by calculating its area and dividing each
intensity by the area.
|
static double |
similarityValue(double[] referenceEIC,
double[] gaussianValues,
int leftBound,
int rightBound)
similarityValue.
|
public static final double FWHM_CONSTANT
FWHM_CONSTANT=2.35482
public CurveTool(SliceSparseMatrix sliceSparseMatrix)
CurveTool constructor takes object of SliceSparseMatrix class.
sliceSparseMatrix
- a SliceSparseMatrix
object.public double estimateFwhmMs()
estimateFwhmMs method estimates the FWHM for given number of random scans.
Double
object.This is Full width half maximum.
public static double similarityValue(double[] referenceEIC, double[] gaussianValues, int leftBound, int rightBound)
similarityValue.
referenceEIC
- an array of double.gaussianValues
- an array of double.leftBound
- a int.rightBound
- a int.public static double normalize(List<SliceSparseMatrix.Triplet> slice, int leftBound, int rightBound, int roundedMz, double[] referenceEIC)
normalize method is used for normalizing EIC by calculating its area and dividing each intensity by the area.
roundedMz
- a Integer
object.This is m/z value which is multiplied by
10000 because of it's use in sparse matrix.leftBound
- a Integer
object. This is lowest scan number from which peak
determining starts.rightBound
- a Integer
object. This is highest scan number on which peak
determining ends.referenceEIC
- a Double
array. This array contains normalize intensities
for given m/z value.(Intensities/area)slice
- a List
object.Double
object. This is area of normalize intensity points.
public static double normalize(double[] values, double[] normValues)
normalize method is used for normalizing values by calculating its area and dividing each value by the area.
public static float normalize(float[] values)
normalize.
values
- an array of float.Copyright © 2019. All rights reserved.