|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinsensa.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()
AbstractInfoReaderAbstractInfoReader 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 InfoReadergetDependencies in class AbstractInfoReaderAbstractInfoReader.getDependencies()public org.jdom.Element getInfoElement()
getInfoElement in interface InfoReadergetInfoElement in class AbstractInfoReaderAbstractInfoReader.getInfoElement()public java.lang.String getInfoName()
getInfoName in interface InfoReaderInfoReader.getInfoName()public java.util.Vector<java.util.Vector<java.lang.String>> getInfos()
getInfos in interface InfoReaderInfoReader.getInfos()public int getNumOfClasses()
getNumOfClasses in interface BreaksValuesBreaksValues.getNumOfClasses()public java.util.List<ClassificationRange> getRangeList()
getRangeList in interface BreaksValuesBreaksValues.getRangeList()
public void readInfos(CRasterFileInformation file)
throws java.io.FileNotFoundException,
java.io.IOException
InfoReader
readInfos in interface InfoReaderfile - File that holds this InfoReader
java.io.FileNotFoundException
java.io.IOExceptionInfoReader.readInfos(insensa.CRasterFileInformation)
public void setInfos(org.jdom.Element eInfo)
throws java.io.IOException
InfoReader
setInfos in interface InfoReaderjava.io.IOExceptionInfoReader.setInfos(org.jdom.Element)public void setNumOfClasses(int numOfClasses)
setNumOfClasses in interface BreaksValuesBreaksValues.setNumOfClasses(int)public void setTargetFile(CRasterFileInformation targetFile)
InfoReader
setTargetFile in interface InfoReadersetTargetFile in class AbstractInfoReadertargetFile - Target file of type CRasterFileInformation for
this InfoReaderAbstractInfoReader.setTargetFile(insensa.CRasterFileInformation)public void setUnread()
InfoReader
setUnread in interface InfoReadersetUnread in class AbstractInfoReaderAbstractInfoReader.setUnread()public void setVariableList(java.util.List<VariableValue<java.lang.String>> variableList)
InfoReader
setVariableList in interface InfoReadersetVariableList in class AbstractInfoReadervariableList - the List of Variables to be setAbstractInfoReader.setVariableList(java.util.List)public java.lang.String toString()
AbstractInfoReader
toString in class AbstractInfoReaderString 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 | |||||||||