# Functions
* Initial code from HyperLogLog.Builder.build()
* by Scouter-Project */.
func MurmurHash(Object o) int { if (o == null) { return 0; } if (o instanceof Long) { return hashLong((Long) o); } if (o instanceof Integer) { return hashLong((Integer) o); } if (o instanceof Double) { return hashLong(Double.doubleToRawLongBits((Double) o)); } if (o instanceof Float) { return hashLong(Float.floatToRawIntBits((Float) o)); } if (o instanceof String) { return hash(((String) o).getBytes()); } if (o instanceof byte[]) { return hash((byte[]) o); }
return hash(o.toString()); }.
No description provided by the author
No description provided by the author
No description provided by the author
func MurmurHash64(Object o) int64 { if (o == null) { return 0l; } else if (o instanceof String) { final byte[] bytes = ((String) o).getBytes(); return hash64(bytes, bytes.length); } else if (o instanceof byte[]) { final byte[] bytes = (byte[]) o; return hash64(bytes, bytes.length); } return hash64(o.toString()); } 64 bit implementation copied from here: https://github.com/tnm/murmurhash-java*
* Generates 64 bit hash from byte array with default seed value.
*
* Creates a new HyperLogLog instance using the given registers.
No description provided by the author
*
* Create a new HyperLogLog instance using the specified standard deviation.
*
* Create a new HyperLogLog instance.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author