This filter randomly selects a percentage of the existing sources in the current domain, to be used for analysis or query testing.
- pDomainId As
- pDelect As
%Numeric- if this is a value between 0 and 1, it is interpreted as the desired selectivity of the filter or the share of the total number of sources to select. If this value is >= 1, it is considered to be the desired number of sources to select (rounded down). If this value is larger than the total number of sources in this domain, all sources are selected.
- pSelectFrom As
%iKnow.Filters.Filter- if set to a valid filter object or string representation, the randomly selected sources are selected from this set only. If select refers to a fraction, the fraction is calculated based on the total number of sources filtered by selectFrom as if it were "the full domain" to select from.
Subclasses should implement this method to build a string representation of the filter instance. It should start with the filter class name, followed by a pipe (|) character and then a string representation that can be interpreted by its