    001/*-
    002 * Copyright 2015, 2016 Diamond Light Source Ltd.
    003 *
    004 * All rights reserved. This program and the accompanying materials
    005 * are made available under the terms of the Eclipse Public License v1.0
    006 * which accompanies this distribution, and is available at
    007 * http://www.eclipse.org/legal/epl-v10.html
    008 */
    009
    010package org.eclipse.january.dataset;
    011
    012import org.apache.commons.math3.exception.MathIllegalArgumentException;
    013import org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic;
    014
    015public class NullStorelessUnivariateStatistic implements StorelessUnivariateStatistic {
    016
    017        @Override
    018        public double evaluate(double[] arg0) throws MathIllegalArgumentException {
    019                return 0;
    020        }
    021
    022        @Override
    023        public double evaluate(double[] arg0, int arg1, int arg2) throws MathIllegalArgumentException {
    024                return 0;
    025        }
    026
    027        @Override
    028        public void clear() {
    029
    030        }
    031
    032        @Override
    033        public StorelessUnivariateStatistic copy() {
    034                return new NullStorelessUnivariateStatistic();
    035        }
    036
    037        @Override
    038        public long getN() {
    039                return 0;
    040        }
    041
    042        @Override
    043        public double getResult() {
    044                return 0;
    045        }
    046
    047        @Override
    048        public void increment(double arg0) {
    049
    050        }
    051
    052        @Override
    053        public void incrementAll(double[] arg0) throws MathIllegalArgumentException {
    054
    055        }
    056
    057        @Override
    058        public void incrementAll(double[] arg0, int arg1, int arg2) throws MathIllegalArgumentException {
    059
    060        }
    061
    062}