/***************************************************************************
                          Ngrams.h  -  description
                             -------------------
    begin                : Don Mai 13 2004
    copyright            : (C) 2004 by klaus frieler
    email                : kgf@omniversum.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
#include "Types.h"

template <class T>
vector<T> getNGram(const vector<T>& seq, const uint start, const uint nLen);

template <class T>
int findNGram(const vector<T>& seq, const vector<T>& nGram, uint start);

template <class T>
vector<uint> findAllNGrams(const vector<T>& seq, const vector<T>& nGram);

template <class T>
uint getNGramCount(const vector<T>& seq, const vector<T>& nGram);

template <class T>
uint getNGramCount(const vector<T>& seq, uint nGramLen);

template <class T>
uint getAllNGrams(/*in*/const vector<T>& seq, const uint nGramLen, /*out*/ vector<uint>& nGramsIdz, vector<uint>& nGramsFreq);

template<class T>
double getNGramWeight(const vector<T>& data1,const vector<T>& data2, uint mode, uint nGramLength);

