src/main/java/chlx/hashing/lsh/LSHComputer.java
public int compute64BitStage(int reducedStage, int dupElementMinAppearance) {
			if (reducedStage < 0) {
				throw new IllegalArgumentException("stages cannot be smaller than 0");
			}
			int count = 0;
			for (int i = 0; i < reducedStage - 1; i++) {
				for (int j = i + 1; j < reducedStage; j++) {
					++count;
				}
			}
			return count - (dupElementMinAppearance >= 3 ? dupElementMinAppearance : 0);
		}
// Combinatoric of (stage choose 2) - dupElementMinAppearance
Combinatoric of (stage choose 2) - dupElementMinAppearance
Combinatoric of ( stage choose 2 ) - dupElementMinAppearance
public int compute64BitStage(int reducedStage, int dupElementMinAppearance) {
			if (reducedStage < 0) {
				throw new IllegalArgumentException("stages cannot be smaller than 0");
			}
			int count = 0;
			for (int i = 0; i < reducedStage - 1; i++) {
				for (int j = i + 1; j < reducedStage; j++) {
					++count;
				}
			}
			return count - (dupElementMinAppearance >= 3 ? dupElementMinAppearance : 0);
		}
public int compute64BitStage ( int reducedStage , int dupElementMinAppearance ) { if ( reducedStage < 0 ) { throw new IllegalArgumentException ( "stages cannot be smaller than 0" ) ; } int count = 0 ; for ( int i = 0 ; i < reducedStage - 1 ; i ++ ) { for ( int j = i + 1 ; j < reducedStage ; j ++ ) { ++ count ; } } return count - ( dupElementMinAppearance >= 3 ? dupElementMinAppearance : 0 ) ; }
Combinatoric of (stage choose 2) - dupElementMinAppearance
Combinatoric of ( stage choose 2 ) - dupElementMinAppearance