insensa.infoconnections
Class LinearRegression
java.lang.Object
insensa.connections.AbstractConnection
insensa.infoconnections.LinearRegression
- All Implemented Interfaces:
- ConnectionFileChanger, FileObserver, InfoConnection, java.lang.Runnable
public class LinearRegression
- extends AbstractConnection
- implements InfoConnection
Fields inherited from class insensa.connections.AbstractConnection |
E_OUTPUT_NAME, E_OUTPUT_PATH, fileNameList, id, ID, OUTPUT_NAME, OUTPUT_SET, outputFile, outputFileName, outputFileSet, rasterFileList, separator, used, USED, workerStatus, XML_ELEMENT_FILE |
Methods inherited from class insensa.connections.AbstractConnection |
addAttributeValue, addElement, check, getChildElement, getFileNameList, getId, getOutputFile, getOutputFileName, getOutputFileSet, getRasterFileList, getSouceFileRelativePaths, getSourceFileList, getVariableList, isUsed, notifyDelete, run, setId, setOutputFile, setOutputFileName, setOutputFileSet, setSourceFileList, setUsed, setVariableList, setWorkerStatus, solveDependencies, solveDependencies, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
run |
LinearRegression
public static final java.lang.String LinearRegression
- See Also:
- Constant Field Values
NODATA_SKIP
private static final int NODATA_SKIP
- See Also:
- Constant Field Values
MEAN_INITIATION
private static final int MEAN_INITIATION
- See Also:
- Constant Field Values
ZERO_INITIATION
private static final int ZERO_INITIATION
- See Also:
- Constant Field Values
corStdDev
private java.util.List<java.util.List<java.lang.Object>> corStdDev
option
private int option
countCalc
private int countCalc
index
private int index
LinearRegression
public LinearRegression()
getConnectionElement
public org.jdom.Element getConnectionElement()
- Description copied from class:
AbstractConnection
- Build a xml Element with the attributes
getConnectionName
public java.lang.String getConnectionName()
- Specified by:
getConnectionName
in interface ConnectionFileChanger
- Returns:
- See Also:
ConnectionFileChanger.getConnectionName()
getCoVarList
public java.util.List<java.util.List<java.lang.Object>> getCoVarList()
- A List of coVar1(String:index1,String:index2,covariance,correlation).
- Returns:
getData
public AttributeTable getData()
- Specified by:
getData
in interface ConnectionFileChanger
- Overrides:
getData
in class AbstractConnection
- Returns:
- See Also:
AbstractConnection.getData()
getInfoDependencies
public java.util.List<java.lang.String> getInfoDependencies()
- Specified by:
getInfoDependencies
in interface ConnectionFileChanger
- Overrides:
getInfoDependencies
in class AbstractConnection
- Returns:
- See Also:
AbstractConnection.getInfoDependencies()
getOption
public int getOption()
- Returns:
getOptionName
public java.lang.String getOptionName()
- Returns:
setConnectionElement
public void setConnectionElement(org.jdom.Element eCon)
throws java.io.IOException
- Description copied from class:
AbstractConnection
- WARNING:
In case that this Connection is unused, you have to set the
sourceFileList before invoking this function
.
- Specified by:
setConnectionElement
in interface ConnectionFileChanger
- Overrides:
setConnectionElement
in class AbstractConnection
- Throws:
java.io.IOException
- See Also:
AbstractConnection.setConnectionElement(org.jdom.Element)
setOption
public void setOption(int option)
- Parameters:
option
-
solveDependencies
public void solveDependencies(java.util.List<CRasterFileInformation> files,
CRasterFileInformation templateFile)
throws java.io.IOException
- Parameters:
files
- templateFile
-
- Throws:
java.io.IOException
write
public void write()
throws java.io.IOException,
org.jdom.JDOMException,
CRasterFileException
- Specified by:
write
in interface ConnectionFileChanger
- Throws:
java.io.IOException
org.jdom.JDOMException
CRasterFileException
- See Also:
ConnectionFileChanger.write()
writeFile
private void writeFile(CRasterFileInformation fileX,
java.util.List<CRasterFileInformation> files)
throws java.io.IOException
- Parameters:
fileX
- files
-
- Throws:
java.io.IOException
writeFitFile
private void writeFitFile(CRasterFileInformation fileX,
java.util.List<CRasterFileInformation> files)
throws java.io.IOException
- Parameters:
fileX
- files
-
- Throws:
java.io.IOException