Sleipnir
src/seekplatform.h
00001 /*****************************************************************************
00002 * This file is provided under the Creative Commons Attribution 3.0 license.
00003 *
00004 * You are free to share, copy, distribute, transmit, or adapt this work
00005 * PROVIDED THAT you attribute the work to the authors listed below.
00006 * For more information, please see the following web page:
00007 * http://creativecommons.org/licenses/by/3.0/
00008 *
00009 * This file is a component of the Sleipnir library for functional genomics,
00010 * authored by:
00011 * Curtis Huttenhower (chuttenh@princeton.edu)
00012 * Mark Schroeder
00013 * Maria D. Chikina
00014 * Olga G. Troyanskaya (ogt@princeton.edu, primary contact)
00015 *
00016 * If you use this library, the included executable tools, or any related
00017 * code in your work, please cite the following publication:
00018 * Curtis Huttenhower, Mark Schroeder, Maria D. Chikina, and
00019 * Olga G. Troyanskaya.
00020 * "The Sleipnir library for computational functional genomics"
00021 *****************************************************************************/
00022 #ifndef SEEKPLATFORM_H
00023 #define SEEKPLATFORM_H
00024 
00025 #include "seekbasic.h"
00026 namespace Sleipnir {
00027 
00047 class CSeekPlatform{
00048 public:
00052     CSeekPlatform();
00056     ~CSeekPlatform();
00057 
00067     void InitializePlatform(const utype &, const string &);
00068 
00074     void SetPlatformAvg(const utype &, const float &);
00075 
00081     void SetPlatformStdev(const utype &, const float &);
00082 
00088     float GetPlatformAvg(const utype &) const;
00089 
00095     float GetPlatformStdev(const utype &) const;
00096 
00100     void ResetPlatform();
00101 
00106     void Copy(const CSeekPlatform &);
00107 
00108 private:
00109     vector<float> m_vecfPlatformAvg;
00110     vector<float> m_vecfPlatformStdev;
00111     string m_strPlatformName;
00112     utype m_iNumGenes;
00113 };
00114 
00115 }
00116 #endif