@astermind/astermind-synth
Version:
OmegaSynth - Label-Conditioned Synthetic Data Generator for AsterMind ELM/KELM Pipelines
41 lines (40 loc) • 963 B
TypeScript
/**
* SyntheticFieldStore - Storage for labeled samples
* Supports insert, get, and sample operations
*/
import { LabeledSample } from '../types';
export declare class SyntheticFieldStore {
private store;
/**
* Insert a labeled sample into the store
*/
insert(sample: LabeledSample): void;
/**
* Insert multiple samples at once
*/
insertMany(samples: LabeledSample[]): void;
/**
* Get all values for a given label
*/
get(label: string): string[];
/**
* Sample k values uniformly at random for a given label
*/
sample(label: string, k?: number): string[];
/**
* Check if a label exists in the store
*/
hasLabel(label: string): boolean;
/**
* Get all labels in the store
*/
getLabels(): string[];
/**
* Get the count of samples for a label
*/
count(label: string): number;
/**
* Clear all data
*/
clear(): void;
}