Java Array Sum Square sumSqual(byte[] b)

Here you can find the source of sumSqual(byte[] b)

Description

sum Squal

License

Open Source License

Declaration

private static int sumSqual(byte[] b) 

Method Source Code

//package com.java2s;

public class Main {
    private static int sumSqual(byte[] b) {
        int sum = 0;
        for (int i = 0; i < b.length; i++) {
            sum += (int) Math.pow(b[i], 2);
        }// w w  w .  java2  s .  c  o m
        return sum;
    }
}

Related

  1. sumOfSquares(double[] vector)
  2. sumOfSquares(int numberOfTerms)
  3. sumOfSquares(Number[] array)
  4. sumSq(double... values)
  5. sumSq(double[] a)
  6. sumSquared(double[] data)
  7. sumSquared(double[] data, double term)
  8. SumSquared(Object in)
  9. sumSquaredError(double[] a, double[] b)