2016-08-03 18:00:07 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2015-05-27 17:57:54 -04:00
|
|
|
import {MeasureValues} from './measure_values';
|
2015-02-17 17:30:24 -05:00
|
|
|
|
2015-02-11 13:13:49 -05:00
|
|
|
/**
|
|
|
|
* A Validator calculates a valid sample out of the complete sample.
|
|
|
|
* A valid sample is a sample that represents the population that should be observed
|
|
|
|
* in the correct way.
|
|
|
|
*/
|
2015-09-25 17:48:17 -04:00
|
|
|
export abstract class Validator {
|
2015-02-11 13:13:49 -05:00
|
|
|
/**
|
|
|
|
* Calculates a valid sample out of the complete sample
|
|
|
|
*/
|
2016-08-25 03:50:16 -04:00
|
|
|
validate(completeSample: MeasureValues[]): MeasureValues[] { throw new Error('NYI'); }
|
2015-02-11 13:13:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a Map that describes the properties of the validator
|
|
|
|
* (e.g. sample size, ...)
|
|
|
|
*/
|
2016-08-25 03:50:16 -04:00
|
|
|
describe(): {[key: string]: any} { throw new Error('NYI'); }
|
2015-05-27 17:57:54 -04:00
|
|
|
}
|