/** * Gets the number of NoData values (including NaN) that have been offered. * Note that different statistics might have been set at different * times in the sampling process. * * @param stat the statistic * * @return number of NoData samples offered * * @throws IllegalArgumentException if the statistic hasn't been set */ public long getNumNoData(Statistic stat) { Processor p = findProcessor(stat); if (p == null) { throw new IllegalArgumentException( "requesting sample size for a statistic that is not set: " + stat); } return p.getNumNoData(); }