E - Type of objects whose features are extractedpublic class AddFeatureExtractor<E> extends Object implements FeatureExtractor<E>, Serializable
AddFeatureExtractor returns feature vectors that result
from summing the feature vectors returned by a collection of
contained feature extractors.| Constructor and Description |
|---|
AddFeatureExtractor(Collection<? extends FeatureExtractor<? super E>> extractors)
Construct an additive feature extractor from the specified
collection of extractors.
|
AddFeatureExtractor(FeatureExtractor<? super E>... extractors)
Construct an additive feature extractor from the specified
extractors.
|
AddFeatureExtractor(FeatureExtractor<? super E> extractor1,
FeatureExtractor<? super E> extractor2)
Construct an additive feature extractor from the specified pair
of extractors.
|
| Modifier and Type | Method and Description |
|---|---|
List<FeatureExtractor<? super E>> |
baseFeatureExtractors()
Returns an unmodifiable view of the list of base feature
extractors for this additive feature extractor.
|
Map<String,? extends Number> |
features(E in)
Return the feature vector for the specified input.
|
public AddFeatureExtractor(Collection<? extends FeatureExtractor<? super E>> extractors)
E.
The collection will be copied locally, so that subsequent changes to the extractor collection supplied to the constructor will not affect the returned feature extractor.
extractors - Collection of feature extractors.public AddFeatureExtractor(FeatureExtractor<? super E> extractor1, FeatureExtractor<? super E> extractor2)
extractor1 - First feature extractor.extractor2 - Second feature extractor.public AddFeatureExtractor(FeatureExtractor<? super E>... extractors)
extractors - Variable length list (or a single array) of extractors.public Map<String,? extends Number> features(E in)
FeatureExtractorfeatures in interface FeatureExtractor<E>in - Input object.public List<FeatureExtractor<? super E>> baseFeatureExtractors()
Copyright © 2019 Alias-i, Inc.. All rights reserved.