Navigation Menu

Skip to content

Commit

Permalink
Fixes for Histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Aug 26, 2011
1 parent 58b557f commit 02feda6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shogun/distributions/Histogram.cpp
Expand Up @@ -20,13 +20,13 @@ using namespace shogun;
CHistogram::CHistogram()
: CDistribution()
{
hist=SG_MALLOC(float64_t, 1<<16);
hist=SG_CALLOC(float64_t, 1<<16);
}

CHistogram::CHistogram(CStringFeatures<uint16_t> *f)
: CDistribution()
{
hist=SG_MALLOC(float64_t, 1<<16);
hist=SG_CALLOC(float64_t, 1<<16);
features=f;
}

Expand Down Expand Up @@ -159,6 +159,6 @@ bool CHistogram::set_histogram(SGVector<float64_t> histogram)

SGVector<float64_t> CHistogram::get_histogram()
{
return SGVector<float64_t>(hist,get_num_model_parameters());
return SGVector<float64_t>(hist,get_num_model_parameters(),false);
}

0 comments on commit 02feda6

Please sign in to comment.