|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--FracStats
Class for FracLac calculates statistics on passed arrays. Can remove areas of horizontal slope from the array, and return alternate values (see constructors). This program is free software distributed in the same way that ImageJ is. A. Karperien, Charles Sturt University, August 2003 Copyright (C) 2003 Audrey Karperien For futher information or to send comments, bugs, and feature requests contact the author or see FracLac page.
file: FracLac_2003August__1.java
IDE: Sun ONE Studio 4, Community Edition
Field Summary | |
float[] |
CCount
|
double |
cdf
Compressed fractal dimension. |
double |
cF
Compressed F parameter. |
int |
correctedNumBoxes
|
double |
crsq
R squared for Compressed regression line. |
int[] |
CSize
|
double |
cstderr
Standard error compressed log-log regression line. |
double |
cyint
Compressed y-intercept. |
double |
df
Fractal dimension or negative slope of log-log regression line |
double |
F
F parameter |
double |
lcdf
Linear regression line compressed slope. |
double |
lcF
F parameter for linear Compressed regression line. |
double |
lcrsq
R squared for linear @link #FindCompressed Compressed} regression line. |
double |
lcstderr
Standard error for Compressed linear regression line. |
double |
lcyint
Y-intercept for linear Compressed regression line. |
double |
ldf
Slope of linear regression line. |
double |
lF
F parameter for linear regression line. |
double |
lrsq
R squared for linear regression line. |
double |
lstderr
Standard error of linear regression line. |
double |
lyint
Y-intercept of linear regression line. |
float[] |
oldcount
|
int |
oldnum
|
int[] |
oldsize
|
double |
rsq
R squared for log-log regression line. |
double |
stderr
Standard error of log-log regression line. |
double |
yint
Y intercept of log-log regression line. |
Constructor Summary | |
FracStats(float[] C,
int[] S,
int originalNumSizes)
Constructor accepts arrays and calls GetStats method. |
|
FracStats(int[] C,
int[] S,
int originalNumSizes)
Constructor accepts arrays and calls GetStats method. |
Method Summary | |
double[] |
FindCompressed(float[] testarray,
int[] Sizes,
int oldNumSizes)
Removes areas of horizontal slope and returns array . |
double[] |
FindCompressed(int[] intCount,
int[] intSizes,
int oldNmSzs)
Removes areas of horizontal slope and returns array for
negative slope of regression line (box count fractal
dimension), y intercept, and correlation coefficient
from log-log plot of passed arrays. |
double[] |
FindDfStats(float[] Counts,
int[] Sizes,
int NumSizes)
Returns array containing power law regression data, using Counts (Y) array and 1/Sizes (1/X) array. |
double[] |
FindDfStats(int[] Counts,
int[] Sizes,
int NumSizes)
Returns a FindDfStats instance from
integers arrays. |
void |
GetStats(float[] oldcount,
int[] oldsize,
int originalNumSizes)
Gets all stats on the data. |
double[] |
LinearRegression(float[] Counts,
int[] Sizes,
int NumSizes)
Returns the negative slope of the regression line (box count fractal dimension), the y intercept (for lacunarity), and the correlation coefficient from the passed arrays without converting to logs. |
double |
log(double number)
Converts to log base 10. |
double |
log(float number)
Converts to log base 10. |
double |
log(int number)
Converts to log base 10. |
double[] |
PlainLinearRegression(float[] Y,
int[] X,
int Num)
|
double[] |
ratioFindDfStats(float[] Counts,
int[] Sizes,
int NumSizes)
Calculates stats using the log-log plot of Counts and the ratio of Sizes/Biggest Size. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public float[] oldcount
public int[] oldsize
public int correctedNumBoxes
public int oldnum
public int[] CSize
public float[] CCount
public double df
public double yint
public double F
public double cdf
Compressed
fractal dimension.
public double cyint
Compressed
y-intercept.
public double cF
Compressed
F parameter.
public double rsq
public double crsq
Compressed
regression line.
public double ldf
public double lyint
public double lrsq
public double lF
public double stderr
public double lstderr
public double cstderr
public double lcdf
public double lcrsq
public double lcyint
Compressed
regression line.
public double lcF
Compressed
regression line.
public double lcstderr
Compressed
linear regression line.
Constructor Detail |
public FracStats(int[] C, int[] S, int originalNumSizes)
GetStats
method.
C
- integer array (corresponds to counts for fractal analysisS
- integer array (corresponds to sizes for fractal analysisoriginalNumSizes
- number of values to use in passed arrayspublic FracStats(float[] C, int[] S, int originalNumSizes)
GetStats
method.
C
- float array (corresponds to counts for fractal analysisS
- integer array (corresponds to sizes for fractal analysisoriginalNumSizes
- number of values to use in passed arraysMethod Detail |
public void GetStats(float[] oldcount, int[] oldsize, int originalNumSizes)
FindDfStats
, FindCompressed
,
and LinearRegression
methods.
Variables set are df
, rsq
, yint
,
F
, stderr
, cdf
, crsq
, cyint
,
cF
, cstderr
, ldf
, lrsq
, lyint
,
lF
, lstderr
, lcdf
, lcrsq
, lcyint
,
lcF
, lcstderr
.
oldcount
- float array of countsoldsize
- integer array of sizesoriginalNumSizes
- integer for number of values to usepublic double[] FindCompressed(int[] intCount, int[] intSizes, int oldNmSzs)
array
for
negative slope of regression line (box count fractal
dimension), y intercept, and correlation coefficient
from log-log plot of passed arrays. Calls an overloaded
version of FindCompressed that accepts a float array
after converting the Count array of integers to floats.
public double[] FindCompressed(float[] testarray, int[] Sizes, int oldNumSizes)
array
.
testarray
- is the first float array to assess (e.g., of counts
of boxes containing pixels in a box count)Sizes
- is an integer array, the second array to
assess in calculating regression lineoldNumSizes
- int for the number of entries to assess
in the passed arrays
FindDfStats method
public double[] ratioFindDfStats(float[] Counts, int[] Sizes, int NumSizes)
FindDfStats
for further calculations.
Counts
- float arraySizes
- integer arrayNumSizes
- integer for number of values to use
public double[] FindDfStats(float[] Counts, int[] Sizes, int NumSizes)
Counts
- array of floatsSizes
- array of integers; 1/Sizes[i] is usedNumSizes
- an integer for the number of values to use
from the passed arrays
public double log(double number)
number
- double to convert
public double log(int number)
number
- int to convert
public double log(float number)
number
- float to convert
public double[] LinearRegression(float[] Counts, int[] Sizes, int NumSizes)
Counts
- float array (e.g., number of boxes that
contained pixels when an image was scanned using many
series of box sizes, where one box size is applied over the
whole image without overlap and the number
that contained pixels is recorded for each scan)Sizes
- float array (e.g., the corresponding
array of box sizesNumSizes
- integer for the number of elements to
use in both arrays
public double[] PlainLinearRegression(float[] Y, int[] X, int Num)
public double[] FindDfStats(int[] Counts, int[] Sizes, int NumSizes)
FindDfStats instance
from
integers arrays. Calls FindDfStats for floats
after converting passed Counts array to floats.
Counts
- integer arraySizes
- integer arrayNumSizes
- integer for number of values to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |