|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object insensa.inforeader.AbstractInfoReader insensa.inforeader.CJenksOptimalBreaksValues
public class CJenksOptimalBreaksValues
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 | |
---|---|
CJenksOptimalBreaksValues()
|
Method Summary | |
---|---|
private float |
calcMean(float[] data,
int[] dataCounts,
int classCounts,
int fromIncl,
int toIncl)
|
private float |
calcSumOfVariances(float[] data,
int[] dataCount,
int[] places,
int[] classCounts)
|
private float |
calcVariance(float[] data,
int[] dataCounts,
float mean,
int classCounts,
int fromIncl,
int toIncl)
|
private int[] |
getBreaks(java.util.Map<java.lang.Float,java.lang.Integer> dataMap,
int numOfClasses)
|
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()
|
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 |
setNumOfClasses(int numOfClasses)
|
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, getVariableList, 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 CJenksOptimalBreaksValues()
Method Detail |
---|
private float calcMean(float[] data, int[] dataCounts, int classCounts, int fromIncl, int toIncl)
data
- dataCounts
- classCounts
- fromIncl
- toIncl
-
private float calcSumOfVariances(float[] data, int[] dataCount, int[] places, int[] classCounts)
data
- dataCount
- places
- classCounts
-
private float calcVariance(float[] data, int[] dataCounts, float mean, int classCounts, int fromIncl, int toIncl)
data
- dataCounts
- mean
- classCounts
- fromIncl
- toIncl
-
private int[] getBreaks(java.util.Map<java.lang.Float,java.lang.Integer> dataMap, int numOfClasses)
dataMap
- numOfClasses
-
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()
getInfoName
in interface InfoReader
InfoReader.getInfoName()
public java.util.Vector<java.util.Vector<java.lang.String>> getInfos()
getInfos
in interface InfoReader
InfoReader.getInfos()
public int getNumOfClasses()
getNumOfClasses
in interface BreaksValues
BreaksValues.getNumOfClasses()
public java.util.List<ClassificationRange> getRangeList()
getRangeList
in interface BreaksValues
BreaksValues.getRangeList()
public void readInfos(CRasterFileInformation file) throws java.io.FileNotFoundException, java.io.IOException
InfoReader
readInfos
in interface 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
setInfos
in interface InfoReader
java.io.IOException
InfoReader.setInfos(org.jdom.Element)
public void setNumOfClasses(int numOfClasses)
setNumOfClasses
in interface BreaksValues
BreaksValues.setNumOfClasses(int)
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 |