I
- type of the itemsF
- type of the featuresV
- type of the information between item-feature pairspublic abstract class FeatureItemDistanceModel<I,F,V> extends Object implements ItemDistanceModel<I>
Constructor and Description |
---|
FeatureItemDistanceModel(FeatureData<I,F,V> featureData)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ToDoubleFunction<I> |
dist(I i)
Returns a function that return the distance to the input item.
|
protected abstract ToDoubleFunction<Stream<org.jooq.lambda.tuple.Tuple2<F,V>>> |
dist(Stream<org.jooq.lambda.tuple.Tuple2<F,V>> features1)
Returns a function that returns the feature-based similarity to the
features of an item.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dist
public FeatureItemDistanceModel(FeatureData<I,F,V> featureData)
featureData
- feature datapublic ToDoubleFunction<I> dist(I i)
dist
in interface ItemDistanceModel<I>
i
- itemprotected abstract ToDoubleFunction<Stream<org.jooq.lambda.tuple.Tuple2<F,V>>> dist(Stream<org.jooq.lambda.tuple.Tuple2<F,V>> features1)
features1
- stream of features of an itemCopyright © 2016. All rights reserved.