This block cuts an AIB tree to form a compact dictionary.
BK = BLOCK_AIBDICT() Initializes the block with the default options.
BK = BLOCK_AIBDICT(BK) Executes the block with options and inputs BK.
Required inputs:
- dict
A dictionary to be compressed, e.g. from BLOCK_DICTIONARY()
- aib
An instance of BLOCK_AIB()
Options:
- bk.nwords
The size of the final dictionary. Default 40.
- bk.discard_zero
Throw away bins which had 0 observations during AIB? Default 1.
Fetchable attributes:
- type
Type of dictionary 'aib'
- aibmap
The mapping from the dictionary to the compressed dictionary
- dict
The dictionary, may also be retrieved with 'dictionary'
Block functions:
- push
[WORDS,HIST,SEL] = PUSH(DICT, DATA) pushes the data through the dictionary. sel indexes which data items correspond to which words.