annotate trunk/src/Modules/Output/Graphics/Scale/ScaleLinear.h @ 558:8ca6eb401a03

Compute member detect_scale_ in AGC_coefficients
author pfh1976@gmail.com
date Mon, 09 Apr 2012 13:22:28 +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__ */