public class NormalizedProfileStats extends ContextCommand implements ShollStats
org.apache.commons.math3
package.Modifier and Type | Field and Description |
---|---|
protected double[] |
fCounts |
protected double[] |
inputCounts |
protected double[] |
inputRadii |
protected Logger |
logger |
protected int |
nPoints |
protected ShollPlot |
plot |
protected Profile |
profile |
protected static double |
UNASSIGNED_VALUE |
ANNULUS, AREA, GUESS_SLOG, LOG_LOG, PERIMETER, S_SHELL, SEMI_LOG, SURFACE, VOLUME
Constructor and Description |
---|
NormalizedProfileStats(Profile profile,
int normalizationFlag) |
NormalizedProfileStats(Profile profile,
int normalizationFlag,
int methodFlag) |
Modifier and Type | Method and Description |
---|---|
protected void |
debug(Object msg) |
protected double |
getAdjustedRSquaredOfFit(int p) |
double |
getDeterminationRatio() |
double[] |
getFitYvalues() |
double[] |
getFitYvalues(boolean asCumulativeFrequencies) |
protected int |
getIndex(double[] array,
double value) |
double |
getIntercept()
Returns the intercept of the estimated regression line,
|
double |
getKStestOfFit()
Returns the two-sample Kolmogorov-Smirnov (K-S) test between the polynomial
fit and sampled intersections as a measurement of goodness of fit.
|
int |
getMethod() |
String |
getMethodDescription() |
static int |
getMethodFlag(String string) |
int |
getN() |
int |
getNormalizer() |
String |
getNormalizerDescription() |
static int |
getNormalizerFlag(String string) |
ShollPlot |
getPlot(boolean cumulativeFrequencies) |
Profile |
getProfile() |
double |
getR()
Returns
Pearson's product moment correlation coefficient, usually denoted r.
|
SimpleRegression |
getRegression() |
double |
getRSquaredOfFit() |
double |
getShollDecay() |
double |
getSlope() |
double[] |
getXvalues()
Returns the abscissae of the Semi-log /Log-log plot for sampled data.
|
double[] |
getYvalues()
Returns the ordinates of the Semi-log/Log-log plot for sampled data.
|
double[] |
getYvalues(boolean asCumulativeFrequencies) |
boolean |
is2Dnormalization() |
boolean |
is3Dnormalization() |
void |
resetRegression() |
void |
restrictRegToPercentile(double p1,
double p2) |
void |
restrictRegToRange(double x1,
double x2) |
void |
run() |
void |
setContext(Context context) |
void |
setDebug(boolean debug) |
void |
setLogger(Logger logger) |
void |
setLogger(Logger logger,
boolean debug) |
protected void |
validateFit() |
boolean |
validFit()
Checks if valid fitted data exists.
|
cancel, getCancelReason, isCanceled
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFitYvalues, getN, getProfile, getYvalues
protected static final double UNASSIGNED_VALUE
protected final double[] inputRadii
protected final double[] inputCounts
protected final Profile profile
protected int nPoints
protected double[] fCounts
protected ShollPlot plot
protected Logger logger
public NormalizedProfileStats(Profile profile, int normalizationFlag)
public NormalizedProfileStats(Profile profile, int normalizationFlag, int methodFlag)
public int getNormalizer()
public String getNormalizerDescription()
public int getMethod()
public String getMethodDescription()
public void resetRegression()
public SimpleRegression getRegression()
public void restrictRegToPercentile(double p1, double p2)
public void restrictRegToRange(double x1, double x2)
public double getRSquaredOfFit()
public double getR()
public double getIntercept()
public double getSlope()
public double getShollDecay()
public double getDeterminationRatio()
public boolean is2Dnormalization()
public boolean is3Dnormalization()
public double[] getYvalues()
getYvalues
in interface ShollStats
public boolean validFit()
validFit
in interface ShollStats
true
if polynomial fitted data existspublic double[] getXvalues()
getXvalues
in interface ShollStats
public double[] getFitYvalues()
getFitYvalues
in interface ShollStats
public static int getNormalizerFlag(String string)
public static int getMethodFlag(String string)
public double getKStestOfFit()
NullPointerException
- if curve fitting has not been performedInsufficientDataException
- if sampled data contains fewer than two
data pointspublic ShollPlot getPlot(boolean cumulativeFrequencies)
protected double getAdjustedRSquaredOfFit(int p)
protected int getIndex(double[] array, double value)
protected void validateFit()
protected void debug(Object msg)
public void setLogger(Logger logger)
public void setLogger(Logger logger, boolean debug)
public void setDebug(boolean debug)
public void setContext(Context context)
setContext
in interface Contextual
public double[] getYvalues(boolean asCumulativeFrequencies)
getYvalues
in interface ShollStats
public int getN()
getN
in interface ShollStats
public double[] getFitYvalues(boolean asCumulativeFrequencies)
getFitYvalues
in interface ShollStats
public Profile getProfile()
getProfile
in interface ShollStats
Copyright © 2015–2021 Fiji. All rights reserved.