Java Array Interpolate interpolateArray(int[] array, int interval)

Here you can find the source of interpolateArray(int[] array, int interval)

Description

interpolate Array

License

Apache License

Declaration

public static int[] interpolateArray(int[] array, int interval) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int[] interpolateArray(int[] array, int interval) {
        int newSize = array.length / interval;
        int[] list = new int[newSize];
        for (int i = 0; i < newSize; i++) {
            int index = i * interval;
            list[i] = array[index];/*from www  .j  ava2 s .c  o  m*/
        }

        return list;
    }
}

Related

  1. interpolate(double[] X, double[] Y, double[] Z)
  2. interpolate(double[] x, int newLength)
  3. interpolate(float out[], float in1[], float in2[], int in2_idx, float coef, int length)
  4. interpolate(int[] data, double x)
  5. interpolate_linear(int[] x, double[] y, int[] xi)
  6. interpolateColor(float[] result, float[] color0, float[] color1, double s)
  7. interpolateLinear(int[] v1, int[] v2, double t)
  8. interpolateLinear(int[] vec, int start, int end)
  9. interpolateNonZeroValues(double[] contour)