public class FromHistogram extends SingleRowPerInput<FileInput,FeatureInputHistogram>
Optionally, additionally extracted features are written in a XML model.
Constructor and Description |
---|
FromHistogram() |
Modifier and Type | Method and Description |
---|---|
protected Optional<String[]> |
additionalLabelsFor(FileInput input)
Additional labels for an input to include (after the identifier, and before any group
labels).
|
protected ResultsVectorWithThumbnail |
calculateResultsForInput(FileInput input,
FeatureCalculationContext<FeatureList<FeatureInputHistogram>> context)
Calculates feature-results for a particular input.
|
HistogramProvider |
getHistogram()
If non-null, a histogram is extracted from this provider rather than the histogram from the
inputted CSV.
|
boolean |
includeGroupInExperiment(boolean groupGeneratorDefined)
Iff true, group columns are added to the CSV exports, and other group exports may occur in
sub-directories.
|
InputTypesExpected |
inputTypesExpected()
Highest class(es) that will function as a valid input.
|
void |
setHistogram(HistogramProvider histogram)
If non-null, a histogram is extracted from this provider rather than the histogram from the
inputted CSV.
|
calculateAndOutput, createExporter, headers
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public InputTypesExpected inputTypesExpected()
FeatureSource
This is usually the class of T (or sometimes the absolute base class InputFromManager)
inputTypesExpected
in class FeatureSource<FileInput,FeatureList<FeatureInputHistogram>,FeatureInputHistogram>
public boolean includeGroupInExperiment(boolean groupGeneratorDefined)
FeatureSource
includeGroupInExperiment
in class FeatureSource<FileInput,FeatureList<FeatureInputHistogram>,FeatureInputHistogram>
groupGeneratorDefined
- has a group-generator been defined for this experiment?protected ResultsVectorWithThumbnail calculateResultsForInput(FileInput input, FeatureCalculationContext<FeatureList<FeatureInputHistogram>> context) throws NamedFeatureCalculateException
SingleRowPerInput
calculateResultsForInput
in class SingleRowPerInput<FileInput,FeatureInputHistogram>
input
- the input.context
- context for calculating features.NamedFeatureCalculateException
- if any feature cannot calculate.protected Optional<String[]> additionalLabelsFor(FileInput input)
SingleRowPerInput
These should always correspond (when appended to the identifier) exactly to the nonGroupHeaders
.
additionalLabelsFor
in class SingleRowPerInput<FileInput,FeatureInputHistogram>
input
- the input.public HistogramProvider getHistogram()
The histogram from the inputted CSV is available in the SharedObjects as "input".
In this way, histogram
can approximate a function of the original histogram.
public void setHistogram(HistogramProvider histogram)
The histogram from the inputted CSV is available in the SharedObjects as "input".
In this way, histogram
can approximate a function of the original histogram.
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.