samplebrain/brain/src/search_params.h

54 lines
1.4 KiB
C
Raw Normal View History

2015-07-21 14:13:39 -03:00
// Copyright (C) 2015 Foam Kernow
//
// 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 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2015-07-11 15:03:05 -03:00
#ifndef SEARCH_PARAMS
#define SEARCH_PARAMS
2022-09-04 07:38:20 -03:00
#include "spiralcore/types.h"
#include "spiralcore/stream.h"
2015-10-16 12:23:51 -03:00
#include <iostream>
#pragma once
2015-07-11 15:03:05 -03:00
namespace spiralcore {
class search_params {
public:
search_params(float ratio, float n_ratio, int s1, int e1, float usage_importance) :
2015-07-11 15:03:05 -03:00
m_ratio(ratio),
2015-07-21 14:13:39 -03:00
m_n_ratio(n_ratio),
2015-07-11 15:03:05 -03:00
m_fft1_start(s1),
m_fft1_end(e1),
2015-08-04 06:14:06 -03:00
m_usage_importance(usage_importance),
m_num_synapses(20),
m_stickyness(0)
2015-08-04 06:14:06 -03:00
{}
2015-07-11 15:03:05 -03:00
float m_ratio;
2015-07-21 14:13:39 -03:00
float m_n_ratio;
2015-08-04 06:14:06 -03:00
u32 m_fft1_start;
u32 m_fft1_end;
float m_usage_importance;
2015-08-04 06:14:06 -03:00
u32 m_num_synapses;
f32 m_stickyness;
2015-07-11 15:03:05 -03:00
};
2015-10-16 12:23:51 -03:00
std::ios &operator||(std::ios &s, search_params &b);
2015-07-11 15:03:05 -03:00
}
#endif