Source: VQ/include/CodebookMap.h


Annotated List
Files
Globals
Hierarchy
Index
// Copyright (C) 1999 Jean-Marc Valin

#ifndef CODEBOOKMAP_H
#define CODEBOOKMAP_H

#include <math.h>
#include <vector>
#include <iostream>
#include "Object.h"
#include "vq.h"
#include "Vector.h"

class CodebookMap;

ostream &operator << (ostream &out, const CodebookMap &cell);


class CodebookMap : public Object {
protected:
   RCPtr<VQ> mapIn;
   
   Vector<Vector<float> > mapOut;

public:
   //CodebookMap() 
   //{}

   CodebookMap(){}
   
   CodebookMap (const CodebookMap &) {cerr << "don't call the CodebookMap copy constructor\n"; exit(1);}

   CodebookMap(const RCPtr<VQ> &_mapIn, const vector<float *> dataIn, const vector<float *> dataOut, int length);

   ~CodebookMap()
   {
   }

   
   const float * calcOutput(const float *in) const;

   void printOn(ostream &out) const;

   void readFrom (istream &in);

   friend istream &operator >> (istream &in, CodebookMap &cell);
};

#endif

Generated by: jmvalin@usw-pr-shell2 on Mon Jun 24 00:06:43 2002, using kdoc 2.0a40.