fixed RBM

git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@283 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2016-05-30 23:53:18 +00:00
parent 7fada2a227
commit f25f5b0dab
1096 changed files with 14 additions and 426765 deletions
+5 -5
View File
@@ -34,7 +34,6 @@ DrawComponent::DrawComponent (int width, int height)
{
//[UserPreSize]
noise_gen_t noise;
m_width = width;
m_height = height;
m_scaleX = 1.0;
@@ -49,7 +48,6 @@ DrawComponent::DrawComponent (int width, int height)
//[Constructor] You can add your own custom stuff here..
// m_pG = new Graphics(m_image);
m_data.resize(width*height);
Noise_Init(&noise, 0x3231);
m_pG->setImageResamplingQuality(Graphics::lowResamplingQuality);
clear();
@@ -65,6 +63,7 @@ DrawComponent::~DrawComponent()
//[Destructor]. You can add your own custom destruction code here..
m_pG = nullptr;
m_pListener = nullptr;
//[/Destructor]
}
@@ -218,11 +217,12 @@ void DrawComponent::drawAt(int x, int y, bool setColor)
void DrawComponent::clear()
{
m_data.fill(0);
setData(m_data);
m_data.resize(m_width*m_height);
m_data = RowVectorXd::Zero(m_width*m_height);
DrawData();
}
const RowVectorXd& DrawComponent::getData ()
RowVectorXd& DrawComponent::getData ()
{
return m_data;
}