2016-08-03 22:00:07 +00: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 21:57:54 +00:00
|
|
|
import {MeasureValues} from './measure_values';
|
2015-02-17 22:30:24 +00:00
|
|
|
|
2015-02-11 18:13:49 +00: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 21:48:17 +00:00
|
|
|
export abstract class Validator {
|
2015-02-11 18:13:49 +00:00
|
|
|
/**
|
|
|
|
|
* Calculates a valid sample out of the complete sample
|
|
|
|
|
*/
|
2016-08-25 07:50:16 +00:00
|
|
|
validate(completeSample: MeasureValues[]): MeasureValues[] { throw new Error('NYI'); }
|
2015-02-11 18:13:49 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns a Map that describes the properties of the validator
|
|
|
|
|
* (e.g. sample size, ...)
|
|
|
|
|
*/
|
2016-08-25 07:50:16 +00:00
|
|
|
describe(): {[key: string]: any} { throw new Error('NYI'); }
|
2015-05-27 21:57:54 +00:00
|
|
|
}
|