(tolerance float64)
| 24 | } |
| 25 | |
| 26 | func NewSamplesComparator(tolerance float64) *SamplesComparator { |
| 27 | return &SamplesComparator{ |
| 28 | tolerance: tolerance, |
| 29 | sampleTypesComparator: map[string]SamplesComparatorFunc{ |
| 30 | "matrix": compareMatrix, |
| 31 | "vector": compareVector, |
| 32 | "scalar": compareScalar, |
| 33 | }, |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | type SamplesComparator struct { |
| 38 | tolerance float64 |
no outgoing calls