|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.parser.meta.MetaParser<V>
de.lmu.ifi.dbs.elki.parser.meta.ProjectionParser<V>
V - the type of RealVector contained in both the ParsingResultpublic abstract class ProjectionParser<V extends RealVector<V,?>>
A ProjectionParser projects the ParsingResult of its base parser
onto a subspace specified by a BitSet.
| Field Summary | |
|---|---|
static OptionID |
SELECTED_ATTRIBUTES_ID
ID for the parameter SELECTED_ATTRIBUTES_PARAM. |
private IntListParameter |
SELECTED_ATTRIBUTES_PARAM
Selected attributes parameter. |
private BitSet |
selectedAttributes
Keeps the selection of the subspace to project onto. |
| Fields inherited from class de.lmu.ifi.dbs.elki.parser.meta.MetaParser |
|---|
BASEPARSER_ID |
| Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
|---|
optionHandler |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug, logger |
| Constructor Summary | |
|---|---|
protected |
ProjectionParser()
Sets the parameter SELECTED_ATTRIBUTES_PARAM. |
| Method Summary | |
|---|---|
BitSet |
getSelectedAttributes()
Provides a BitSet with the bits set to true corresponding to the selected attributes in SELECTED_ATTRIBUTES_PARAM. |
List<String> |
setParameters(List<String> args)
Grabs all specified options from the option handler. |
void |
setSelectedAttributes(BitSet selectedAttributes)
Sets the bits set to true in the given BitSet as selected attributes in SELECTED_ATTRIBUTES_PARAM. |
| Methods inherited from class de.lmu.ifi.dbs.elki.parser.meta.MetaParser |
|---|
retrieveBaseParsingresult, toString |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
|---|
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, shortDescription |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface de.lmu.ifi.dbs.elki.parser.Parser |
|---|
parse |
| Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
|---|
checkGlobalParameterConstraints, collectOptions, getParameters, shortDescription |
| Field Detail |
|---|
private BitSet selectedAttributes
public static final OptionID SELECTED_ATTRIBUTES_ID
SELECTED_ATTRIBUTES_PARAM.
private final IntListParameter SELECTED_ATTRIBUTES_PARAM
Selected attributes parameter.
Key: -projectionparser.selectedattributes
| Constructor Detail |
|---|
protected ProjectionParser()
SELECTED_ATTRIBUTES_PARAM.
| Method Detail |
|---|
public List<String> setParameters(List<String> args)
throws ParameterException
AbstractParameterizable
{
List remainingParameters = super.setParameters(args);
// set parameters for your class
// for example like this:
if(isSet(MY_PARAM_VALUE_PARAM))
{
myParamValue = getParameterValue(MY_PARAM_VALUE_PARAM);
}
.
.
.
return remainingParameters;
// or in case of attributes requesting parameters themselves
// return parameterizableAttribbute.setParameters(remainingParameters);
}
setParameters in interface ParameterizablesetParameters in class MetaParser<V extends RealVector<V,?>>args - parameters to set the attributes accordingly to
ParameterException - in case of wrong parameter-settingAbstractParameterizable.setParameters(java.util.List) public void setSelectedAttributes(BitSet selectedAttributes)
Sets the bits set to true in the given BitSet as selected attributes in SELECTED_ATTRIBUTES_PARAM.
selectedAttributes - the new selected attributespublic BitSet getSelectedAttributes()
Provides a BitSet with the bits set to true corresponding to the selected attributes in SELECTED_ATTRIBUTES_PARAM.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||