Octane v1.01.20 - The Open Compression Toolkit for C++ http://octane.sourceforge.net/
Homepage | Main | Modules | Class Hierarchy | Compound List | File List | Compound Members | Related Pages

modelers/modeler_weightvectored.cpp

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 //---------------------------------------------------------------------------
00012 
00013 //---------------------------------------------------------------------------
00014 #include "modeler_weightvectored.hpp"
00015 //---------------------------------------------------------------------------
00016 
00017 
00018 
00019 //---------------------------------------------------------------------------
00020 // OCTANE PUBLIC API - AUXILIARY FUNCTIONS - these are supported by all derived classes
00021 
00022 unsigned int OctaneModeler_WeightVectored::GetMemoryUsed()
00023 {
00024         // size of our modeler in memory
00025         return (unsigned int)(sizeof(this)+weightvector.GetMemoryUsed());
00026 }
00027 
00028 unsigned int OctaneModeler_WeightVectored::GetDiskspaceUsed(bool fortempdecompressiononly)
00029 {
00030         // disk space used to save state
00031         return weightvector.GetMemoryUsed();
00032 }
00033 
00034 bool OctaneModeler_WeightVectored::SaveState(bitwriter &to,bool fortempdecompressiononly)
00035 {
00036         // save state
00037         // return true on success
00038         return weightvector.SaveState(to,fortempdecompressiononly);
00039 }
00040 
00041 bool OctaneModeler_WeightVectored::LoadState(bitreader &from)
00042 {
00043         // load state
00044         // return true on success
00045         return weightvector.LoadState(from);
00046 }
00047 
00048 
00049 void OctaneModeler_WeightVectored::ShowDebuggingInfo()
00050 {
00051         // optionally send debug information to a stream
00052         weightvector.ShowDebuggingInfo();       
00053 }
00054 //---------------------------------------------------------------------------
00055         
00056         
00057         
00058 //---------------------------------------------------------------------------
00059 // MODELLER PUBLIC API
00060 
00061 void OctaneModeler_WeightVectored::ResetState()
00062 {
00063         // reset state - just zero out the weight vector - this is called prior to a call to PrepareForModeling()
00064         weightvector.ResetWeights();
00065 }
00066 //---------------------------------------------------------------------------
 
Generated on 20 May 2004 by doxygen 1.3.3