# Rating Distance¶

## Overview¶

Compare the usergiven rating of a song with each other.

You can define the maximun and minimal rating. The same rating will give a distance of 0.0.

## Reference¶

class munin.distance.rating.RatingDistance(no_rating=0, min_rating=1, max_rating=5, **kwargs)[source]

Instance a new RatingDistance.

Parameters: no_rating – The rating that unrated songs will have, e.g. 0 stars. min_rating – The minimal rating you will have e.g. 1 stars. max_rating – The maximal rating you will have e.g. 5 stars.