Uses of Class
org.anchoranalysis.feature.bean.Feature
| Package | Description |
|---|---|
| org.anchoranalysis.feature.bean |
Beans pertaining to feature-calculation.
|
| org.anchoranalysis.feature.bean.list |
A feature-list (custom list type for features) and associated providers.
|
| org.anchoranalysis.feature.bean.operator |
Features that are sufficiently generic to work on any input-type.
|
| org.anchoranalysis.feature.bean.provider |
Provider of a single feature.
|
| org.anchoranalysis.feature.bean.results |
Defines base class
FeatureResults together with
some implementations. |
| org.anchoranalysis.feature.calculate |
Sub-feature units of calculation that can be cached.
|
| org.anchoranalysis.feature.calculate.cache |
Classes to cache feature-results or parts of feature-results that occur repeatedly among features
or across calculations of the same feature.
|
| org.anchoranalysis.feature.input |
Base classes providing inputs to feature calculations.
|
| org.anchoranalysis.feature.name |
Data objects for the names of features.
|
| org.anchoranalysis.feature.shared |
Features shared for referencing among calculations.
|
| org.anchoranalysis.feature.store |
A collection of named-
Features. |
-
Uses of Feature in org.anchoranalysis.feature.bean
Methods in org.anchoranalysis.feature.bean that return Feature Modifier and Type Method Description <S extends T>
Feature<S>Feature. castAs()Casts the feature to having a different input-type.Feature<T>Feature. duplicateChangeName(String customName)Duplicates the feature as perAnchorBean.duplicateBean()but sets a particular custom-name.Methods in org.anchoranalysis.feature.bean with parameters of type Feature Modifier and Type Method Description protected voidFeature. assignTo(Feature<FeatureInput> target)Copies fields in this (base) class totarget. -
Uses of Feature in org.anchoranalysis.feature.bean.list
Methods in org.anchoranalysis.feature.bean.list that return Feature Modifier and Type Method Description Feature<T>FeatureList. get(int index)Returns the element at the specified position in this list.Feature<T>DefineSingle. getItem()The sole feature that forms the list.Methods in org.anchoranalysis.feature.bean.list that return types with arguments of type Feature Modifier and Type Method Description List<Feature<T>>FeatureList. asList()Exposes the underlying list of features in this data-structure.List<Feature<T>>Define. getList()The list that specifies features.List<Feature<T>>FeatureList. getList()The list of features.Iterator<Feature<T>>FeatureList. iterator()Methods in org.anchoranalysis.feature.bean.list with parameters of type Feature Modifier and Type Method Description voidFeatureList. add(Feature<? extends T> feature)Adds a feature to the current list.static <T extends FeatureInput>
FeatureList<T>FeatureListFactory. from(Feature<T>... feature)Creates a list for one or more featuresvoidDefineSingle. setItem(Feature<T> item)The sole feature that forms the list.Method parameters in org.anchoranalysis.feature.bean.list with type arguments of type Feature Modifier and Type Method Description <S extends FeatureInput, E extends Exception>
FeatureList<S>FeatureList. filterAndMap(Predicate<Feature<T>> predicate, CheckedFunction<Feature<T>,Feature<S>,E> mappingFunction)<S extends FeatureInput, E extends Exception>
FeatureList<S>FeatureList. filterAndMap(Predicate<Feature<T>> predicate, CheckedFunction<Feature<T>,Feature<S>,E> mappingFunction)<S extends FeatureInput, E extends Exception>
FeatureList<S>FeatureList. filterAndMap(Predicate<Feature<T>> predicate, CheckedFunction<Feature<T>,Feature<S>,E> mappingFunction)static <T extends FeatureInput>
FeatureList<T>FeatureListFactory. fromIterable(Iterable<Feature<T>> iterable)Creates a list of features from an iterablestatic <T extends FeatureInput>
FeatureList<T>FeatureListFactory. fromProvider(Provider<Feature<T>> featureProvider)Creates a list for a single-feature created from a providerstatic <T extends FeatureInput>
FeatureList<T>FeatureListFactory. fromStream(Stream<Feature<T>> stream)Creates a list of features from a stream<S extends FeatureInput, E extends Exception>
FeatureList<S>FeatureList. map(CheckedFunction<Feature<T>,Feature<S>,E> mapFunc)Creates a new feature-list where each feature is the result of applying a map-function to an existing feature.<S extends FeatureInput, E extends Exception>
FeatureList<S>FeatureList. map(CheckedFunction<Feature<T>,Feature<S>,E> mapFunc)Creates a new feature-list where each feature is the result of applying a map-function to an existing feature.static <S, T extends FeatureInput, E extends Exception>
FeatureList<T>FeatureListFactory. mapFrom(Iterable<S> iterable, CheckedFunction<S,Feature<T>,E> mapFunc)static <S, T extends FeatureInput, E extends Exception>
FeatureList<T>FeatureListFactory. mapFromFiltered(Iterable<S> iterable, Predicate<S> predicate, CheckedFunction<S,Feature<T>,E> mapFunc)Creates a new feature-list by filtering an iterable and then mapping it to a featurestatic <T extends FeatureInput>
FeatureList<T>FeatureListFactory. mapFromRange(int startInclusive, int endExclusive, IntFunction<Feature<T>> mapFunc)Creates a new feature-list by mapping integers (from a range) each to a featurestatic <T extends FeatureInput, E extends Exception>
FeatureList<T>FeatureListFactory. mapFromRangeOptional(int startInclusive, int endExclusive, Class<? extends Exception> throwableClass, CheckedIntFunction<Optional<Feature<T>>,E> mapFunc)Creates a new feature-list by mapping integers (from a range) each to an optional featurevoidDefine. setList(List<Feature<T>> list)The list that specifies features.voidFeatureList. setList(List<Feature<T>> list)The list of features.FeatureList<T>FeatureList. sort(Comparator<Feature<T>> comparator)Creates a new feature-list sorted in a particular order.static <T extends FeatureInput>
FeatureList<T>FeatureListFactory. wrapDuplicate(List<Feature<T>> list)Wraps an existing list, WITHOUT reusing the list in the internals of theFeatureListi.e.static <T extends FeatureInput>
FeatureList<T>FeatureListFactory. wrapReuse(List<Feature<T>> list)Wraps an existing list, reusing the list in the internals of theFeatureListConstructors in org.anchoranalysis.feature.bean.list with parameters of type Feature Constructor Description Define(Feature<T> feature)Create from a singleFeature.DefineSingle(Feature<T> item)FeatureList(Feature<T> feature)Creates with a singleFeature.Constructor parameters in org.anchoranalysis.feature.bean.list with type arguments of type Feature Constructor Description Define(List<Feature<T>> list)FeatureList(List<Feature<T>> list)Wraps an existing list.FeatureList(Stream<Feature<T>> stream)Creates from a stream ofFeatures. -
Uses of Feature in org.anchoranalysis.feature.bean.operator
Subclasses of Feature in org.anchoranalysis.feature.bean.operator Modifier and Type Class Description classConstant<T extends FeatureInput>A constant value that is entirely invariant to the feature-input.classFeatureBinary<T extends FeatureInput>A base class for aFeaturethat is a binary-function of the results from two other features.classFeatureFromList<T extends FeatureInput>A base class for aFeaturethat is a function of the results from a list of other features.classFeatureGeneric<T extends FeatureInput>Base class for features that broadly accept any type of feature-input.classFeatureUnary<T extends FeatureInput,S extends FeatureInput>A feature that contains another feature as a bean-parameter.classFeatureUnaryGeneric<T extends FeatureInput>AFeatureUnarythat accepts anyFeatureInputirrespective of type.classReference<T extends FeatureInput>Uses another feature to calculate the value.classSum<T extends FeatureInput>Sums the results after calculating a list ofFeatures.Methods in org.anchoranalysis.feature.bean.operator that return Feature Modifier and Type Method Description Feature<S>FeatureUnary. getItem()Feature<T>FeatureBinary. getItem1()Provides the first value for the binary-function.Feature<T>FeatureBinary. getItem2()Provides the second value for the binary-function.Methods in org.anchoranalysis.feature.bean.operator that return types with arguments of type Feature Modifier and Type Method Description List<Feature<T>>FeatureFromList. getList()The features whose results will be somehow combined, to form the result of this class.Methods in org.anchoranalysis.feature.bean.operator with parameters of type Feature Modifier and Type Method Description voidFeatureUnary. setItem(Feature<S> item)voidFeatureBinary. setItem1(Feature<T> item1)Provides the first value for the binary-function.voidFeatureBinary. setItem2(Feature<T> item2)Provides the second value for the binary-function.Method parameters in org.anchoranalysis.feature.bean.operator with type arguments of type Feature Modifier and Type Method Description voidFeatureFromList. setList(List<Feature<T>> list)Assigns the list of features to use.Constructors in org.anchoranalysis.feature.bean.operator with parameters of type Feature Constructor Description FeatureUnary(Feature<S> item)FeatureUnaryGeneric(Feature<T> feature)Create with a specific feature, that provides the input to the unary function. -
Uses of Feature in org.anchoranalysis.feature.bean.provider
Methods in org.anchoranalysis.feature.bean.provider that return Feature Modifier and Type Method Description Feature<T>FeatureProviderDefine. get()Feature<FeatureInput>FeatureProviderReference. get()Feature<T>FeatureProviderDefine. getFeature()The feature to provide.Methods in org.anchoranalysis.feature.bean.provider with parameters of type Feature Modifier and Type Method Description voidFeatureProviderDefine. setFeature(Feature<T> feature)The feature to provide.Constructors in org.anchoranalysis.feature.bean.provider with parameters of type Feature Constructor Description FeatureProviderDefine(Feature<T> feature) -
Uses of Feature in org.anchoranalysis.feature.bean.results
Subclasses of Feature in org.anchoranalysis.feature.bean.results Modifier and Type Class Description classCountThe sum of the results from a particular feature.classFeatureResultsFeatures that processResultsVectorList.classFeatureResultsStatisticBase class for an instance ofFeatureResultsthat calculating a statistic across all results in theResultsVectorListfor a particular feature-value.classMaximumThe maximum of the results from a particular feature.classMeanThe mean of the results from a particular feature.classMinimumThe minimum of the results from a particular feature.classQuantileA quantile of the results from a particular feature.classStandardDeviationThe standard-deviation of the results from a particular feature.classSumThe sum of the results from a particular feature. -
Uses of Feature in org.anchoranalysis.feature.calculate
Methods in org.anchoranalysis.feature.calculate with parameters of type Feature Modifier and Type Method Description doubleFeatureCalculationInput. calculate(Feature<T> feature)Calculates the result of a feature using this input.doubleFeatureCalculator. calculate(Feature<T> feature, FeatureCalculationInput<T> input)Calculate the result of feature with a particular input. -
Uses of Feature in org.anchoranalysis.feature.calculate.cache
Methods in org.anchoranalysis.feature.calculate.cache with parameters of type Feature Modifier and Type Method Description <S extends FeatureInput>
doubleCalculateForChild. calculate(Feature<S> feature, CalculationPart<S,T> calculation, ChildCacheName childCacheName)Calculates a feature in a child-cache using a new input created from aCalculationPart.<S extends FeatureInput>
doubleCalculateForChild. calculate(Feature<S> feature, S input, ChildCacheName childCacheName)Calculates a feature in a child-cache. -
Uses of Feature in org.anchoranalysis.feature.input
Methods in org.anchoranalysis.feature.input with parameters of type Feature Modifier and Type Method Description static Class<? extends FeatureInput>FeatureInputType. prefer(Feature<?> feature1, Feature<?> feature2)LikeFeatureInputType.prefer(Class, Class)but accepts features directly as input.Method parameters in org.anchoranalysis.feature.input with type arguments of type Feature Modifier and Type Method Description static <T extends FeatureInput>
Class<? extends FeatureInput>FeatureInputType. determineInputType(List<Feature<T>> list)Finds a common input-type for classes in the list, throwing an exception if any two types aren't compatible. -
Uses of Feature in org.anchoranalysis.feature.name
Methods in org.anchoranalysis.feature.name with parameters of type Feature Modifier and Type Method Description static voidAssignFeatureNameUtilities. assignWithPrefix(Feature<? extends FeatureInput> feature, String existingName, String prefix)Assigns a new custom-name to a feature, by combining an existing-name with a prefix. -
Uses of Feature in org.anchoranalysis.feature.shared
Methods in org.anchoranalysis.feature.shared that return Feature Modifier and Type Method Description Feature<T>SharedFeaturesSubset. getException(String name)Gets a feature by name, throwing an exception if it doesn't exist.Methods in org.anchoranalysis.feature.shared that return types with arguments of type Feature Modifier and Type Method Description Optional<Feature<FeatureInput>>SharedFeatures. getOptional(String key)Iterator<NameValue<Feature<FeatureInput>>>SharedFeatures. iterator()Methods in org.anchoranalysis.feature.shared with parameters of type Feature Modifier and Type Method Description booleanSharedFeatures. contains(Feature<FeatureInput> feature)Whether a particular feature is contained in this instance.Method parameters in org.anchoranalysis.feature.shared with type arguments of type Feature Modifier and Type Method Description voidSharedFeaturesSubset. forEach(Consumer<Feature<T>> consumer)Iterates over each feature in the instance.Constructor parameters in org.anchoranalysis.feature.shared with type arguments of type Feature Constructor Description SharedFeaturesSubset(NameValueMap<Feature<T>> map) -
Uses of Feature in org.anchoranalysis.feature.store
Methods in org.anchoranalysis.feature.store that return types with arguments of type Feature Modifier and Type Method Description NamedBean<Feature<T>>NamedFeatureStore. get(int index)Gets a feature at a particular position.NamedBean<Feature<T>>NamedFeatureStore. get(String name)Gets a feature corresponding to a particular name.Iterator<NamedBean<Feature<T>>>NamedFeatureStore. iterator()