Java List Sum adjustSumOfSquareValue(List oper, Number adjustedOper1)

Here you can find the source of adjustSumOfSquareValue(List oper, Number adjustedOper1)

Description

adjust Sum Of Square Value

License

Open Source License

Declaration

public static Number adjustSumOfSquareValue(List<? extends Number> oper, Number adjustedOper1) 

Method Source Code


//package com.java2s;
import java.util.List;

public class Main {

    public static Number adjustSumOfSquareValue(List<? extends Number> oper, Number adjustedOper1) {
        double model = 0.0;
        for (int i = 0, j = oper.size(); i < j; i++) {
            model += Math.pow(oper.get(i).doubleValue() - adjustedOper1.doubleValue(), 2);
        }/*from  w  w w. j  av  a 2s.c o m*/

        return model;
    }
}

Related

  1. addByteToMessage(final List message, final byte bytevalue, final int checksum)
  2. calculateSum(List valueList)
  3. checkSum(List stringList)
  4. getListSum(List list)
  5. getResidualSumOfSquares(List response, List samples, int ta)