Java Number Power pow(float[] inData, float rate)

Here you can find the source of pow(float[] inData, float rate)

Description

pow

License

Open Source License

Declaration

public static float[] pow(float[] inData, float rate) 

Method Source Code

//package com.java2s;
/*//ww  w  . java 2  s  .co  m
 * Copyright (c) 2008-2013 Maksim Khadkevich and Fondazione Bruno Kessler.
 *
 * This file is part of MART.
 * MART is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2, as published
 * by the Free Software Foundation.
 *
 * MART is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with MART; if not, write to the Free Software Foundation,
 * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

public class Main {
    public static float[] pow(float[] inData, float rate) {
        float[] out = new float[inData.length];
        for (int i = 0; i < inData.length; i++) {
            out[i] = (float) Math.pow(inData[i], rate);
        }
        return out;
    }
}

Related

  1. pow(final int b, final int e)
  2. pow(final long base, final long exponent)
  3. pow(float a, float b)
  4. Pow(float base, float exponent)
  5. pow(float x, int y)
  6. pow(float[][] in)
  7. pow(int a, int b)
  8. pow(int a, int b, int modulus)
  9. pow(int b, int e)