@Override
	public boolean equals(Object o) {
		LBPParameters params = null;
		try {
			params = (LBPParameters) o;
		} catch (ClassCastException e) {
			return false;
		}
		if (p.length != params.p.length) {
			return false;
		}
		for (int i = 0; i < p.length; i++) {
			if (p[i] != params.p[i] || r[i] != params.r[i] || b[i] != params.b[i]) {
				return false;
			}
		}
		return true;
	}