|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object insensa.inforeader.AbstractInfoReader insensa.inforeader.CKMeansValues
public class CKMeansValues
Field Summary | |
---|---|
java.util.List<InfoReader> |
iReaderList
|
java.util.List<InfoReader> |
iReaderListDep
|
private int |
numOfClasses
|
private java.lang.String |
precisionString
|
private java.util.List<ClassificationRange> |
rangeList
|
private static long |
serialVersionUID
|
Fields inherited from class insensa.inforeader.AbstractInfoReader |
---|
dependencer, processStatus, read, targetFile, workerStatus |
Constructor Summary | |
---|---|
CKMeansValues()
|
Method Summary | |
---|---|
private int |
calcClassCount(float[] data,
int[] dataCounts,
int fromIncl,
int toIncl)
|
private float |
calcMean(float[] data,
int[] dataCounts,
int classCounts,
int fromIncl,
int toIncl)
|
private float[] |
calcMeans(java.util.Map<java.lang.Float,java.lang.Integer> dataMap,
int[] counts,
float[] ranges)
|
private float[] |
calcMeans3(float[] data,
int[] dataCounts,
int[] classCounts,
int[] places)
|
private float |
calcSumOfVariances(float[] data,
int[] dataCount,
int[] places,
int[] classCounts)
|
private float |
calcSumOfVariances2(float[] data,
int[] dataCount,
int[] places)
|
private float |
calcVariance(float[] data,
int[] dataCounts,
float mean,
int classCounts,
int fromIncl,
int toIncl)
|
private float |
getBreaks(java.util.Map<java.lang.Float,java.lang.Integer> dataMap,
int numOfClasses2,
java.util.List<ClassificationRange> equalRangeList,
int numOfData)
|
private float |
getBreaks2(java.util.Map<java.lang.Float,java.lang.Integer> dataMap,
int numOfClasses2,
java.util.List<ClassificationRange> equalRangeList,
int numOfData)
|
private float |
getBreaks3(java.util.Map<java.lang.Float,java.lang.Integer> dataMap,
int numOfClasses2,
java.util.List<ClassificationRange> equalRangeList,
int numOfData)
|
java.util.List<java.lang.String> |
getDependencies()
Returns a list with names of InfoReaders that have to be executed before this InfoReader can be executed. |
org.jdom.Element |
getInfoElement()
|
java.lang.String |
getInfoName()
|
java.util.Vector<java.util.Vector<java.lang.String>> |
getInfos()
|
int |
getNumOfClasses()
|
java.util.List<ClassificationRange> |
getRangeList()
|
java.util.List<VariableValue<java.lang.String>> |
getVariableList()
|
void |
readInfos(CRasterFileInformation file)
This method will try to receive all informations from dependent InfoReader You can get InfoReader with file.getInfoReader(nameOfInfoReader); |
void |
setInfos(org.jdom.Element eInfo)
Restore saved data |
void |
setTargetFile(CRasterFileInformation targetFile)
determines the target file for this InfoReader. |
void |
setUnread()
Set InfoReader to unread to execute it again |
void |
setVariableList(java.util.List<VariableValue<java.lang.String>> variableList)
Configure InfoReader |
java.lang.String |
toString()
Note Can be used to determine the human readable text for this InfoReader . |
Methods inherited from class insensa.inforeader.AbstractInfoReader |
---|
getErrorMassage, getPrecisionString, getTargetFile, isRead, run, setDependencyChecker, setWorkerStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.lang.String precisionString
private int numOfClasses
private java.util.List<ClassificationRange> rangeList
public java.util.List<InfoReader> iReaderList
public java.util.List<InfoReader> iReaderListDep
Constructor Detail |
---|
public CKMeansValues()
Method Detail |
---|
private int calcClassCount(float[] data, int[] dataCounts, int fromIncl, int toIncl)
data
- dataCounts
- fromIncl
- toIncl
-
private float calcMean(float[] data, int[] dataCounts, int classCounts, int fromIncl, int toIncl)
data
- dataCounts
- classCounts
- fromIncl
- toIncl
-
private float[] calcMeans(java.util.Map<java.lang.Float,java.lang.Integer> dataMap, int[] counts, float[] ranges)
dataMap
- counts
- ranges
-
private float[] calcMeans3(float[] data, int[] dataCounts, int[] classCounts, int[] places)
data
- dataCounts
- classCounts
- places
-
private float calcSumOfVariances(float[] data, int[] dataCount, int[] places, int[] classCounts)
data
- dataCount
- places
- classCounts
-
private float calcSumOfVariances2(float[] data, int[] dataCount, int[] places)
data
- dataCount
- places
-
private float calcVariance(float[] data, int[] dataCounts, float mean, int classCounts, int fromIncl, int toIncl)
data
- dataCounts
- mean
- classCounts
- fromIncl
- toIncl
-
private float getBreaks(java.util.Map<java.lang.Float,java.lang.Integer> dataMap, int numOfClasses2, java.util.List<ClassificationRange> equalRangeList, int numOfData)
dataMap
- numOfClasses2
- equalRangeList
- numOfData
-
private float getBreaks2(java.util.Map<java.lang.Float,java.lang.Integer> dataMap, int numOfClasses2, java.util.List<ClassificationRange> equalRangeList, int numOfData)
dataMap
- numOfClasses2
- equalRangeList
- numOfData
-
private float getBreaks3(java.util.Map<java.lang.Float,java.lang.Integer> dataMap, int numOfClasses2, java.util.List<ClassificationRange> equalRangeList, int numOfData)
dataMap
- numOfClasses2
- equalRangeList
- numOfData
-
public java.util.List<java.lang.String> getDependencies()
AbstractInfoReader
AbstractInfoReader
should override this
method if dependencies are necessary. Example: List<String> depList = super.getDependencies();
depList.add("countValues");
depList.add("equalBreaksValues");
return depList;
getDependencies
in interface InfoReader
getDependencies
in class AbstractInfoReader
AbstractInfoReader.getDependencies()
public org.jdom.Element getInfoElement()
getInfoElement
in interface InfoReader
getInfoElement
in class AbstractInfoReader
AbstractInfoReader.getInfoElement()
public java.lang.String getInfoName()
InfoReader.getInfoName()
public java.util.Vector<java.util.Vector<java.lang.String>> getInfos()
InfoReader.getInfos()
public int getNumOfClasses()
public java.util.List<ClassificationRange> getRangeList()
public java.util.List<VariableValue<java.lang.String>> getVariableList()
getVariableList
in interface InfoReader
getVariableList
in class AbstractInfoReader
AbstractInfoReader.getVariableList()
public void readInfos(CRasterFileInformation file) throws java.io.FileNotFoundException, java.io.IOException
InfoReader
file
- File that holds this InfoReader
java.io.FileNotFoundException
java.io.IOException
InfoReader.readInfos(insensa.CRasterFileInformation)
public void setInfos(org.jdom.Element eInfo) throws java.io.IOException
InfoReader
java.io.IOException
InfoReader.setInfos(org.jdom.Element)
public void setTargetFile(CRasterFileInformation targetFile)
InfoReader
setTargetFile
in interface InfoReader
setTargetFile
in class AbstractInfoReader
targetFile
- Target file of type CRasterFileInformation
for
this InfoReaderAbstractInfoReader.setTargetFile(insensa.CRasterFileInformation)
public void setUnread()
InfoReader
setUnread
in interface InfoReader
setUnread
in class AbstractInfoReader
AbstractInfoReader.setUnread()
public void setVariableList(java.util.List<VariableValue<java.lang.String>> variableList)
InfoReader
setVariableList
in interface InfoReader
setVariableList
in class AbstractInfoReader
variableList
- the List of Variables to be setAbstractInfoReader.setVariableList(java.util.List)
public java.lang.String toString()
AbstractInfoReader
toString
in class AbstractInfoReader
String
that returns
InfoReader.getInfoName()
with the fist
letter in upper caseAbstractInfoReader.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |