Java Array Normalize normalizedTermMu(double ui, double[] uis)

Here you can find the source of normalizedTermMu(double ui, double[] uis)

Description

normalized Term Mu

License

Open Source License

Declaration

public static double normalizedTermMu(double ui, double[] uis) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double normalizedTermMu(double ui, double[] uis) {
        double max = getMax(uis);
        return ui / max;
    }//from www .  j  a  va2  s  .com

    public static double getMax(double[] arr) {
        double max = arr[0];
        for (double a : arr) {
            if (a > max) {
                max = a;
            }
        }

        return max;
    }
}

Related

  1. normalizeComplexVectorsToUnitVectors(float[] complex)
  2. normalizeComponentsOverwrite(float[][][][] in)
  3. normalizeContingencyTable(final int[][] table)
  4. normalizeCoordsSum(float[] vector, float newSum)
  5. normalizedBySum(double[] values)
  6. normalizeFloatArray(float[] buffer, float peak, float target)
  7. normalizeForce(double[] data)
  8. normalizeFromLog10(double[] array)
  9. normalizeFromLog10(double[] array, boolean takeLog10OfOutput)