ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
factors.h
Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Author: Anders Nielsen <anders@nielsensweb.org>
00005  * Copyright (c) 2010-2012 ADMB Foundation
00006  */
00011 #ifndef __FACTORS_H__
00012 #define __FACTORS_H__
00013 class factor
00014 {
00015   int nlevels;
00016   ivector idx;
00017   dvar_vector levels;
00018 public:
00019   factor(){nlevels=0;}
00020   void allocate(const ivector& v, dvar_vector & par);
00021   dvariable operator () (int i);
00022 };
00023 #endif