Class LinearCombination

java.lang.Object
org.apache.commons.numbers.arrays.LinearCombination

public class LinearCombination
extends java.lang.Object
Computes linear combinations accurately. This method computes the sum of the products ai bi to high accuracy. It does so by using specific multiplication and addition algorithms to preserve accuracy and reduce cancellation effects. It is based on the 2005 paper Accurate Sum and Dot Product by Takeshi Ogita, Siegfried M. Rump, and Shin'ichi Oishi published in SIAM J. Sci. Comput.
  • Constructor Summary

    Constructors 
    Constructor Description
    LinearCombination()  
  • Method Summary

    Modifier and Type Method Description
    static double value​(double[] a, double[] b)  
    static double value​(double a1, double b1, double a2, double b2)  
    static double value​(double a1, double b1, double a2, double b2, double a3, double b3)  
    static double value​(double a1, double b1, double a2, double b2, double a3, double b3, double a4, double b4)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait