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

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

Introduction

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

Prototype

public static int hashDouble(double value) 

Source Link

Usage

From source file:com.mashup.resys.recommender.SimilarUser.java

License:Apache License

@Override
public int hashCode() {
    return (int) userID ^ RandomUtils.hashDouble(similarity);
}