* Search the dataset based on a metadata field.
(query: string, inRegexMode: boolean, fieldName: string)
| 632 | * Search the dataset based on a metadata field. |
| 633 | */ |
| 634 | query(query: string, inRegexMode: boolean, fieldName: string): number[] { |
| 635 | let predicate = util.getSearchPredicate(query, inRegexMode, fieldName); |
| 636 | let matches: number[] = []; |
| 637 | this.points.forEach((point, id) => { |
| 638 | if (predicate(point)) { |
| 639 | matches.push(id); |
| 640 | } |
| 641 | }); |
| 642 | return matches; |
| 643 | } |
| 644 | } |
| 645 | export type ProjectionType = 'tsne' | 'umap' | 'pca' | 'custom'; |
| 646 | export class Projection { |
no test coverage detected