UNPKG

siafun

Version:
17 lines (16 loc) 1.18 kB
import { Pattern, Point } from './structure'; import { SiatecResult } from './siatec'; import { CosiatecHeuristic } from './heuristics'; export declare enum OPTIMIZATION { MINIMIZE = 0, DIVIDE = 1, PARTITION = 2 } export declare function minLength(input: SiatecResult, minLength: number): SiatecResult; export declare function minimize(input: SiatecResult, heuristic: CosiatecHeuristic, dimension: number, minLength?: number): SiatecResult; export declare function divide(input: SiatecResult, heuristic: CosiatecHeuristic, dimension: number, minLength?: number): SiatecResult; export declare function partition(input: SiatecResult, heuristic: CosiatecHeuristic, dimension: number, minLength?: number): SiatecResult; export declare function dividePattern(pattern: Pattern, allPoints: Point[], dimension: number, heuristic: CosiatecHeuristic, minLength?: number): Pattern[]; /** partitions the given pattern along the given dimension */ export declare function partitionPattern(pattern: Pattern, allPoints: Point[], dimension: number, heuristic: CosiatecHeuristic, minLength?: number): Pattern[]; export declare function unitePatterns(patterns: Pattern[]): Pattern[];