Interface Normalizer<I>
- Type Parameters:
I
- type of the items.
- All Known Implementing Classes:
MinMaxNormalizer
,NoNormalizer
,RanksimNormalizer
,StatsBasedNormalizer
,ZScoreNormalizer
public interface Normalizer<I>
Interface for normalization.
-
Method Summary
Modifier and Type Method Description void
add(I i, double val)
Adds an item-value pair to the list.default void
add(org.ranksys.core.util.tuples.Tuple2od<I> tuple)
Adds an item-value tuple to the list.double
norm(I i, double value)
Given an item-value pair, it computes the normalized value.default double
norm(org.ranksys.core.util.tuples.Tuple2od<I> tuple)
Given an item-value pair, it computes the normalized value.
-
Method Details
-
add
Adds an item-value tuple to the list.- Parameters:
tuple
- the item-value tuple.
-
add
Adds an item-value pair to the list.- Parameters:
i
- the item identifier.val
- the value of the item.
-
norm
Given an item-value pair, it computes the normalized value.- Parameters:
tuple
- an item-value pair.- Returns:
- the normalized value for the tuple
-
norm
Given an item-value pair, it computes the normalized value.- Parameters:
i
- the item identifier.value
- the value.- Returns:
- the normalized value.
-