PLearn 0.1
ConditionalDistribution.h
Go to the documentation of this file.
00001 
00002 
00003 // -*- C++ -*-
00004 
00005 // ConditionalDistribution.h
00006 // 
00007 // Copyright (C) *YEAR* *AUTHOR(S)* 
00008 // ...
00009 // Copyright (C) *YEAR* *AUTHOR(S)* 
00010 // 
00011 // Redistribution and use in source and binary forms, with or without
00012 // modification, are permitted provided that the following conditions are met:
00013 // 
00014 //  1. Redistributions of source code must retain the above copyright
00015 //     notice, this list of conditions and the following disclaimer.
00016 // 
00017 //  2. Redistributions in binary form must reproduce the above copyright
00018 //     notice, this list of conditions and the following disclaimer in the
00019 //     documentation and/or other materials provided with the distribution.
00020 // 
00021 //  3. The name of the authors may not be used to endorse or promote
00022 //     products derived from this software without specific prior written
00023 //     permission.
00024 // 
00025 // THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
00026 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00027 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
00028 // NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00029 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
00030 // TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00031 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00032 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00033 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00034 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00035 // 
00036 // This file is part of the PLearn library. For more information on the PLearn
00037 // library, go to the PLearn Web site at www.plearn.org
00038 
00039 
00040 #ifndef ConditionalDistribution_INC
00041 #define ConditionalDistribution_INC
00042 
00043 //#include "Learner.h"
00044 #include "Distribution.h"
00045 
00046 namespace PLearn {
00047 using namespace std;
00048 
00049 class ConditionalDistribution: public Distribution
00050 {
00051 protected:
00052     // *********************
00053     // * protected options *
00054     // *********************
00055 
00056     // ### declare protected option fields (such as learnt parameters) here
00057     // ...
00058     
00059 public:
00060 
00061     typedef Distribution inherited;
00062 
00063     // the part of the PLearner's inputsize() that corresponds to the size
00064     // of the conditioning variable. It should be < inputsize().
00065     int input_part_size;
00066 
00067     // ****************
00068     // * Constructors *
00069     // ****************
00070 
00071     // Default constructor, make sure the implementation in the .cc
00072     // initializes all fields to reasonable default values.
00073     ConditionalDistribution();
00074 
00076     virtual void makeDeepCopyFromShallowCopy(CopiesMap& copies);
00077 
00079     PLEARN_DECLARE_OBJECT(ConditionalDistribution);
00080 
00082     virtual void setInput(const Vec& input);
00083 
00084     virtual void use(const Vec& input, Vec& output);
00085 };
00086 
00087 // Declares a few other classes and functions related to this class
00088 DECLARE_OBJECT_PTR(ConditionalDistribution);
00089   
00090 } // end of namespace PLearn
00091 
00092 #endif
00093 
00094 
00095 /*
00096   Local Variables:
00097   mode:c++
00098   c-basic-offset:4
00099   c-file-style:"stroustrup"
00100   c-file-offsets:((innamespace . 0)(inline-open . 0))
00101   indent-tabs-mode:nil
00102   fill-column:79
00103   End:
00104 */
00105 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=79 :
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines