/** * Normalizes this Markov chain. */ public void normalize() { VectorUtil.divideByNorm1Equals(this.initialProbability); this.normalizeTransitionMatrix(this.transitionProbability); }
/** * Normalizes this Markov chain. */ public void normalize() { VectorUtil.divideByNorm1Equals(this.initialProbability); this.normalizeTransitionMatrix(this.transitionProbability); }
/** * Normalizes this Markov chain. */ public void normalize() { VectorUtil.divideByNorm1Equals(this.initialProbability); this.normalizeTransitionMatrix(this.transitionProbability); }
/** * Returns a new vector whose elements are the elements of the original * vector, divided by the 1-norm of the vector (the sum of the absolute * values of the elements). If the 1-norm is zero (which means all the * elements are zero), then the result is just a duplicate of the input * (zero) vector. * * @param input * The vector to divide by its 1-norm. * @return * A new vector whose elements are the elements from the given vector, * divided by its 1-norm. */ public static Vector divideByNorm1( final Vector input) { final Vector clone = input.clone(); divideByNorm1Equals(clone); return clone; }
/** * Returns a new vector whose elements are the elements of the original * vector, divided by the 1-norm of the vector (the sum of the absolute * values of the elements). If the 1-norm is zero (which means all the * elements are zero), then the result is just a duplicate of the input * (zero) vector. * * @param input * The vector to divide by its 1-norm. * @return * A new vector whose elements are the elements from the given vector, * divided by its 1-norm. */ public static Vector divideByNorm1( final Vector input) { final Vector clone = input.clone(); divideByNorm1Equals(clone); return clone; }
/** * Returns a new vector whose elements are the elements of the original * vector, divided by the 1-norm of the vector (the sum of the absolute * values of the elements). If the 1-norm is zero (which means all the * elements are zero), then the result is just a duplicate of the input * (zero) vector. * * @param input * The vector to divide by its 1-norm. * @return * A new vector whose elements are the elements from the given vector, * divided by its 1-norm. */ public static Vector divideByNorm1( final Vector input) { final Vector clone = input.clone(); divideByNorm1Equals(clone); return clone; }
VectorUtil.divideByNorm1Equals(latent.pTermGivenLatent); VectorUtil.divideByNorm1Equals(latent.pDocumentGivenLatent);
VectorUtil.divideByNorm1Equals(latent.pTermGivenLatent); VectorUtil.divideByNorm1Equals(latent.pDocumentGivenLatent);
VectorUtil.divideByNorm1Equals(latent.pTermGivenLatent); VectorUtil.divideByNorm1Equals(latent.pDocumentGivenLatent);
VectorUtil.divideByNorm1Equals(latent.pTermGivenLatent); VectorUtil.divideByNorm1Equals(latent.pDocumentGivenLatent);
VectorUtil.divideByNorm1Equals(latent.pTermGivenLatent); VectorUtil.divideByNorm1Equals(latent.pDocumentGivenLatent);
VectorUtil.divideByNorm1Equals(latent.pTermGivenLatent); VectorUtil.divideByNorm1Equals(latent.pDocumentGivenLatent);
VectorUtil.divideByNorm1Equals(pQueryGivenLatent);
VectorUtil.divideByNorm1Equals(pQueryGivenLatent);
VectorUtil.divideByNorm1Equals(pQueryGivenLatent);