/** * Returns the linear equation system for printing purposes. If normalization * is null the linear equation system is returned, otherwise the linear * equation system will be transformed according to the normalization. * * @param normalization the normalization, can be null * @return the linear equation system for printing purposes * @throws NonNumericFeaturesException if the linear equation system is not * compatible with values initialized during normalization */ public LinearEquationSystem getNormalizedLinearEquationSystem(Normalization<?> normalization) throws NonNumericFeaturesException { if(normalization != null) { LinearEquationSystem lq = normalization.transform(linearEquationSystem); lq.solveByTotalPivotSearch(); return lq; } else { return linearEquationSystem; } }
/** * Returns the linear equation system for printing purposes. If normalization * is null the linear equation system is returned, otherwise the linear * equation system will be transformed according to the normalization. * * @param normalization the normalization, can be null * @return the linear equation system for printing purposes * @throws NonNumericFeaturesException if the linear equation system is not * compatible with values initialized during normalization */ public LinearEquationSystem getNormalizedLinearEquationSystem(Normalization<?> normalization) throws NonNumericFeaturesException { if(normalization != null) { LinearEquationSystem lq = normalization.transform(linearEquationSystem); lq.solveByTotalPivotSearch(); return lq; } else { return linearEquationSystem; } }