Skip to content

Commit

Permalink
aded DataGenerator class
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Jul 22, 2012
1 parent 9bef2a5 commit 9f65805
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/interfaces/modular/Features.i
Expand Up @@ -63,6 +63,7 @@
%rename(LBPPyrDotFeatures) CLBPPyrDotFeatures;
%rename(ExplicitSpecFeatures) CExplicitSpecFeatures;
%rename(ImplicitWeightedSpecFeatures) CImplicitWeightedSpecFeatures;
%rename(DataGenerator) CDataGenerator;

/* Include Class Headers to make them visible from within the target language */
%include <shogun/features/FeatureTypes.h>
Expand All @@ -75,6 +76,7 @@
%include <shogun/features/StreamingFeatures.h>
%include <shogun/features/StreamingDotFeatures.h>
%include <shogun/features/StreamingVwFeatures.h>
%include <shogun/features/DataGenerator.h>

/* Templated Class StringFeatures */
%include <shogun/features/StringFeatures.h>
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/modular/Features_includes.i
Expand Up @@ -40,4 +40,5 @@
#include <shogun/features/LBPPyrDotFeatures.h>
#include <shogun/features/ExplicitSpecFeatures.h>
#include <shogun/features/ImplicitWeightedSpecFeatures.h>
#include <shogun/features/DataGenerator.h>
%}
26 changes: 26 additions & 0 deletions src/shogun/features/DataGenerator.cpp
@@ -0,0 +1,26 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2012 Heiko Strathmann
*/

#include <shogun/features/DataGenerator.h>

using namespace shogun;

CDataGenerator::CDataGenerator() : CSGObject()
{
init();
}

CDataGenerator::~CDataGenerator()
{

}

void CDataGenerator::init()
{
}
38 changes: 38 additions & 0 deletions src/shogun/features/DataGenerator.h
@@ -0,0 +1,38 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2012 Heiko Strathmann
*/

#ifndef __DATAGENERATOR_H_
#define __DATAGENERATOR_H_

#include <shogun/base/SGObject.h>

namespace shogun
{

/** @brief Class that is able to generate various data samples, which may be
* used for examples in SHOGUN.
*/
class CDataGenerator: public CSGObject
{
public:
CDataGenerator();

virtual ~CDataGenerator();

inline virtual const char* get_name() const { return "DataGenerator"; }

private:
/** registers all parameters and initializes variables with defaults */
void init();

};

}

#endif /* __DATAGENERATOR_H_ */

0 comments on commit 9f65805

Please sign in to comment.