- All Known Implementing Classes:
MyAnimeListAffinityAlgorithm
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The affinity algorithm returns an affinity score based on the shared scores between two people.
- Since:
- 2.3.0
- Version:
- 2.3.0
- Author:
- Katsute
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getAffinity
(int[] a_scores, int[] b_scores) Returns affinity between two linked score sets.
-
Method Details
-
getAffinity
float getAffinity(int[] a_scores, int[] b_scores) Returns affinity between two linked score sets.- Parameters:
a_scores
- shared scores for first user (in same order as second user)b_scores
- shared scores for second user (in same order as first user)- Returns:
- affinity
- Since:
- 2.3.0
-