List of usage examples for org.apache.mahout.common RandomUtils hashFloat
public static int hashFloat(float value)
From source file:com.mashup.resys.recommender.GenericRecommendedItem.java
License:Apache License
@Override public int hashCode() { return (int) itemID ^ RandomUtils.hashFloat(value); }
From source file:org.gpfvic.mahout.cf.taste.hadoop.EntityPrefWritable.java
License:Apache License
@Override public int hashCode() { return super.hashCode() ^ RandomUtils.hashFloat(prefValue); }
From source file:org.gpfvic.mahout.cf.taste.hadoop.item.PrefAndSimilarityColumnWritable.java
License:Apache License
@Override public int hashCode() { return RandomUtils.hashFloat(prefValue) + 31 * similarityColumn.hashCode(); }