/** * A base class for implementing probailistic filters * @author Thomas Minier * @author Arnaud Grall */ export default abstract class BaseFilter { private _seed; private _rng; constructor(); /** * Get the seed used in this structure */ get seed(): number; /** * Set the seed for this structure * @param seed the new seed that will be used in this structure */ set seed(seed: number); /** * Get a function used to draw random number * @return A factory function used to draw random integer */ get random(): () => number; /** * Save the current structure as a JSON object */ saveAsJSON(): Object; /** * Load an Object from a provided JSON object * @param json the JSON object to load * @return Return the Object loaded from the provided JSON object */ static fromJSON(json: any): any; }