Example usage for org.apache.mahout.common RandomUtils hashFloat

List of usage examples for org.apache.mahout.common RandomUtils hashFloat

Introduction

In this page you can find the example usage for org.apache.mahout.common RandomUtils hashFloat.

Prototype

public static int hashFloat(float value) 

Source Link

Usage

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();
}