Mercurial > hg > aimc
annotate trunk/src/Modules/Output/Graphics/Scale/ScaleLinear.h @ 706:f8e90b5d85fd tip
Delete CARFAC code from this repository.
It has been moved to https://github.com/google/carfac
Please email me with your github username to get access.
I've also created a new mailing list to discuss CARFAC development:
https://groups.google.com/forum/#!forum/carfac-dev
author | ronw@google.com |
---|---|
date | Thu, 18 Jul 2013 20:56:51 +0000 |
parents | dd13c9834ceb |
children |
rev | line source |
---|---|
tomwalters@397 | 1 /*! |
tomwalters@397 | 2 * \file |
tomwalters@397 | 3 * \brief Linear frequency scale for generating filter banks and their frequencies |
tomwalters@397 | 4 * |
tomwalters@397 | 5 * \author Willem van Engen <cnbh@willem.engen.nl> |
tomwalters@397 | 6 * \date created 2006/09/26 |
tomwalters@397 | 7 * \version \$Id: ScaleLinear.h 459 2007-11-08 11:50:04Z tom $ |
tomwalters@397 | 8 */ |
tomwalters@397 | 9 /* (c) 2006, University of Cambridge, Medical Research Council |
tomwalters@397 | 10 * http://www.pdn.cam.ac.uk/groups/cnbh/aimmanual |
tomwalters@397 | 11 */ |
tomwalters@397 | 12 #ifndef __MODULE_SCALE_LINEAR_H__ |
tomwalters@397 | 13 #define __MODULE_SCALE_LINEAR_H__ |
tomwalters@397 | 14 |
tom@400 | 15 #include "Modules/Output/Graphics/Scale/Scale.h" |
tom@400 | 16 |
tom@400 | 17 namespace aimc { |
tomwalters@397 | 18 |
tomwalters@397 | 19 /*! |
tomwalters@397 | 20 * \class ScaleLinear "Modules/Scale/ScaleLinear.h" |
tomwalters@397 | 21 * \brief Linear frequency scale for generating filter banks and their frequencies |
tomwalters@397 | 22 * |
tomwalters@397 | 23 * It is very advisable to use Scale::Create() to an instance of this scale. |
tomwalters@397 | 24 * |
tomwalters@397 | 25 * In terms of scaling, this is of course an identity transformation. |
tomwalters@397 | 26 */ |
tomwalters@397 | 27 class ScaleLinear : public Scale { |
tomwalters@397 | 28 public: |
tomwalters@398 | 29 ScaleLinear(unsigned int min, unsigned int max, float density) |
tomwalters@398 | 30 : Scale(min, max, density) { m_iType = SCALE_LINEAR; m_sName = "linear"; }; |
tomwalters@397 | 31 |
tomwalters@398 | 32 float FromLinear(float fFreq) { |
tomwalters@398 | 33 return fFreq; |
tomwalters@398 | 34 }; |
tomwalters@397 | 35 |
tomwalters@398 | 36 float ToLinear(float fFreq) { |
tomwalters@398 | 37 return fFreq; |
tomwalters@398 | 38 }; |
tomwalters@397 | 39 }; |
tom@400 | 40 } // namepspace aimc |
tomwalters@397 | 41 #endif /* __MODULE_SCALE_LINEAR_H__ */ |