| 54 | }; |
| 55 | |
| 56 | export interface OptionsProps { |
| 57 | sampling: 'nearest' | 'max' | 'min' | Function; |
| 58 | /* 周期 */ |
| 59 | rate: number; |
| 60 | dimension: string; |
| 61 | } |
| 62 | |
| 63 | export default function rateDownSample(data, options?: OptionsProps) { |
| 64 | const { sampling = 'nearest', rate = 5, dimension = 'value' } = options; |
nothing calls this directly
no outgoing calls
no test coverage detected