Java 类com.github.mikephil.charting.data.filter.Approximator 实例源码

项目:GitHub    文件:ApproximatorTest.java   
@Test
public void testApproximation() {

    float[] points = new float[]{
            10, 20,
            20, 30,
            25, 25,
            30, 28,
            31, 31,
            33, 33,
            40, 40,
            44, 40,
            48, 23,
            50, 20,
            55, 20,
            60, 25};

    assertEquals(24, points.length);

    Approximator a = new Approximator();

    float[] reduced = a.reduceWithDouglasPeucker(points, 2);

    assertEquals(18, reduced.length);
}
项目:xs-android-architecture    文件:ApproximatorTest.java   
@Test
public void testApproximation() {

    float[] points = new float[]{
            10, 20,
            20, 30,
            25, 25,
            30, 28,
            31, 31,
            33, 33,
            40, 40,
            44, 40,
            48, 23,
            50, 20,
            55, 20,
            60, 25};

    assertEquals(24, points.length);

    Approximator a = new Approximator();

    float[] reduced = a.reduceWithDouglasPeucker(points, 2);

    assertEquals(18, reduced.length);
}
项目:LETO-Toggl_Android    文件:ApproximatorTest.java   
@Test
public void testApproximation() {

    float[] points = new float[]{
            10, 20,
            20, 30,
            25, 25,
            30, 28,
            31, 31,
            33, 33,
            40, 40,
            44, 40,
            48, 23,
            50, 20,
            55, 20,
            60, 25};

    assertEquals(24, points.length);

    Approximator a = new Approximator();

    float[] reduced = a.reduceWithDouglasPeucker(points, 2);

    assertEquals(18, reduced.length);
}
项目:MPAndroidChart    文件:ApproximatorTest.java   
@Test
public void testApproximation() {

    float[] points = new float[]{
            10, 20,
            20, 30,
            25, 25,
            30, 28,
            31, 31,
            33, 33,
            40, 40,
            44, 40,
            48, 23,
            50, 20,
            55, 20,
            60, 25};

    assertEquals(24, points.length);

    Approximator a = new Approximator();

    float[] reduced = a.reduceWithDouglasPeucker(points, 2);

    assertEquals(18, reduced.length);
}
项目:P2P    文件:BarLineChartBase.java   
/**
 * Enables data filtering for the chart data, filtering will use the user
 * customized Approximator handed over to this method.
 * 
 * @param a
 */
public void enableFiltering(Approximator a) {
    mFilterData = true;
    // mApproximator = a;
}
项目:mobile-manager-for-cloudflare    文件:BarLineChartBase.java   
/**
 * Enables data filtering for the chart data, filtering will use the user
 * customized Approximator handed over to this method.
 * 
 * @param a
 */
public void enableFiltering(Approximator a) {
    mFilterData = true;
    // mApproximator = a;
}
项目:braingames    文件:BarLineChartBase.java   
/**
 * Enables data filtering for the chart data, filtering will use the user
 * customized Approximator handed over to this method.
 * 
 * @param a
 */
public void enableFiltering(Approximator a) {
    mFilterData = true;
    // mApproximator = a;
}
项目:Notification-Analyser    文件:BarLineChartBase.java   
/**
 * Enables data filtering for the chart data, filtering will use the user
 * customized Approximator handed over to this method.
 * 
 * @param a
 */
public void enableFiltering(Approximator a) {
    mFilterData = true;
    // mApproximator = a;
}