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