Skip to content

Commit

Permalink
added subset support for obtain_from_char fixing sergey's fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Jun 30, 2011
1 parent 7c7e3de commit d10eaf3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/libshogun/features/StringFeatures.h
Expand Up @@ -1645,7 +1645,7 @@ template <class ST> class CStringFeatures : public CFeatures
*
* wrapper for template method
*
* not implemented for subset
* any subset is removed before
*
* @param sf string features
* @param start start
Expand All @@ -1656,16 +1656,12 @@ template <class ST> class CStringFeatures : public CFeatures
*/
inline bool obtain_from_char(CStringFeatures<char>* sf, int32_t start, int32_t p_order, int32_t gap, bool rev)
{
// FIXME
if (m_subset) //|| sf->m_subset)
SG_NOTIMPLEMENTED;

return obtain_from_char_features(sf, start, p_order, gap, rev);
}

/** template obtain from char features
*
* not implemented for subset
* any subset is removed before, subset of parameter sf is possible
*
* @param sf string features
* @param start start
Expand All @@ -1677,10 +1673,6 @@ template <class ST> class CStringFeatures : public CFeatures
template <class CT>
bool obtain_from_char_features(CStringFeatures<CT>* sf, int32_t start, int32_t p_order, int32_t gap, bool rev)
{
//FIXME
if (m_subset)// || sf->m_subset)
SG_NOTIMPLEMENTED;

ASSERT(sf);

CAlphabet* alpha=sf->get_alphabet();
Expand Down

0 comments on commit d10eaf3

Please sign in to comment.