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, isCanceledcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFitYvalues, getN, getProfile, getYvaluesprotected 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 ShollStatspublic boolean validFit()
validFit in interface ShollStatstrue if polynomial fitted data existspublic double[] getXvalues()
getXvalues in interface ShollStatspublic double[] getFitYvalues()
getFitYvalues in interface ShollStatspublic 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 Contextualpublic double[] getYvalues(boolean asCumulativeFrequencies)
getYvalues in interface ShollStatspublic int getN()
getN in interface ShollStatspublic double[] getFitYvalues(boolean asCumulativeFrequencies)
getFitYvalues in interface ShollStatspublic Profile getProfile()
getProfile in interface ShollStatsCopyright © 2015–2021 Fiji. All rights reserved.