public function preprocess( $pSaxReferenceString, array $pSaxAnalysisStrings) {
        $this->referenceSuffixTree = new SuffixTree( $pSaxReferenceString );

        foreach ( $pSaxAnalysisStrings as $anaString ) {
            $anaTree = new SuffixTree($anaString);
            $this->annotateSurpriseValues( $this->referenceSuffixTree, $anaTree );
            $this->analysisSuffixTree[] = $anaTree;
        }
        
        return $this->analysisSuffixTree;
    }
public function preprocess( $pSaxReferenceString, array $pSaxAnalysisStrings) {
        $this->referenceSuffixTree = new SuffixTree( $pSaxReferenceString );

        foreach ( $pSaxAnalysisStrings as $anaString ) {
            $anaTree = new SuffixTree($anaString);
            $this->annotateSurpriseValues( $this->referenceSuffixTree, $anaTree );
            $this->analysisSuffixTree[] = $anaTree;
        }
        
        return $this->analysisSuffixTree;
    }
public function preprocess ( $ pSaxReferenceString , array $ pSaxAnalysisStrings ) { $ this -> referenceSuffixTree = new SuffixTree ( $ pSaxReferenceString ) ; foreach ( $ pSaxAnalysisStrings as $ anaString ) { $ anaTree = new SuffixTree ( $ anaString ) ; $ this -> annotateSurpriseValues ( $ this -> referenceSuffixTree , $ anaTree ) ; $ this -> analysisSuffixTree [ ] = $ anaTree ; } return $ this -> analysisSuffixTree ; }
Creates the suffix trees for the given reference string
and the strings under analysis. Annotates the occurences
of each substring in the corresponding node of the tree.

@param  string $pSaxReferenceString Discretized reference string (i.e. sax word)
@param  array  $pSaxAnalysisStrings Array of discretized string representing
the time series under analysis
@return array                       Returns an array containing the analysis
trees annotated with their surprise values
Creates the suffix trees for the given reference string and the strings under analysis . Annotates the occurences of each substring in the corresponding node of the tree .