org.knime.base.node.mine.regression.polynomial.learner
Class PolyRegLearnerSettings

java.lang.Object
  extended by org.knime.base.node.mine.regression.polynomial.learner.PolyRegLearnerSettings

public class PolyRegLearnerSettings
extends Object

This class holds the settings for the polynomial regression learner node.

Author:
Thorsten Meinl, University of Konstanz

Constructor Summary
PolyRegLearnerSettings()
           
 
Method Summary
 int getDegree()
          Returns the maximum degree that polynomial used for regression should have.
 int getMaxRowsForView()
          Returns the maximum number of rows that are shown in the curve view.
 Set<String> getSelectedColumns()
          Returns an (unmodifieable) set of the select column names.
 String getTargetColumn()
          Returns the name of the target column that holds the dependent variable.
 boolean isIncludeAll()
           
 void loadSettingsFrom(NodeSettingsRO settings)
          Loads the settings from the node settings object.
 void saveSettingsTo(NodeSettingsWO settings)
          Saves the settings to the node settings object.
 void setDegree(int degree)
          Sets the maximum degree that polynomial used for regression should have.
 void setIncludeAll(boolean includeAll)
           
 void setMaxRowsForView(int maxRowsForView)
          Sets the maximum number of rows that are shown in the curve view.
 void setSelectedColumns(Set<String> columnNames)
          Sets the names of the columns that should be used for the regression.
 void setTargetColumn(String targetColumn)
          Sets the name of the target column that holds the dependent variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolyRegLearnerSettings

public PolyRegLearnerSettings()
Method Detail

getDegree

public int getDegree()
Returns the maximum degree that polynomial used for regression should have.

Returns:
the maximum degree

getTargetColumn

public String getTargetColumn()
Returns the name of the target column that holds the dependent variable.

Returns:
the target column's name

loadSettingsFrom

public void loadSettingsFrom(NodeSettingsRO settings)
                      throws InvalidSettingsException
Loads the settings from the node settings object.

Parameters:
settings - the node settings
Throws:
InvalidSettingsException - if one of the settings is missing

saveSettingsTo

public void saveSettingsTo(NodeSettingsWO settings)
Saves the settings to the node settings object.

Parameters:
settings - the node settings

setDegree

public void setDegree(int degree)
Sets the maximum degree that polynomial used for regression should have.

Parameters:
degree - the maximum degree

setTargetColumn

public void setTargetColumn(String targetColumn)
Sets the name of the target column that holds the dependent variable.

Parameters:
targetColumn - the target column's name

getMaxRowsForView

public int getMaxRowsForView()
Returns the maximum number of rows that are shown in the curve view.

Returns:
the maximum number of rows

setMaxRowsForView

public void setMaxRowsForView(int maxRowsForView)
Sets the maximum number of rows that are shown in the curve view.

Parameters:
maxRowsForView - the maximum number of rows

setSelectedColumns

public void setSelectedColumns(Set<String> columnNames)
Sets the names of the columns that should be used for the regression. The target column name must not be among these columns!

Parameters:
columnNames - a set with the selected column names

getSelectedColumns

public Set<String> getSelectedColumns()
Returns an (unmodifieable) set of the select column names.

Returns:
a set with the selectec column names

isIncludeAll

public boolean isIncludeAll()
Returns:
the includeAll

setIncludeAll

public void setIncludeAll(boolean includeAll)
Parameters:
includeAll - the includeAll to set


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.