+project(ODAS)
cmake_minimum_required(VERSION 2.4.6)
if(COMMAND cmake_policy)
set(EXECUTABLE_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/bin")
set(LIBRARY_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/lib")
+#Add base directory for includes (global)
+include_directories(include/odas)
+
+add_subdirectory(include)
+
set(SRC
src/general/format.c
#include <time.h>
#include <stdlib.h>
- #include "../src/utils/inverse.h"
+ #include <utils/inverse.h>
int main(int argc, char * argv[]) {
}
- }
\ No newline at end of file
+ }
--- /dev/null
+#Scan for headers and add them for installation
+file(GLOB_RECURSE ODAS_ALL_INCLUDES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h)
+
+message(STATUS "HEADER FILES: ${ODAS_ALL_INCLUDES}")
+
+add_custom_target(odas_headers SOURCES ${ODAS_ALL_INCLUDES})
+
+install(FILES ${ODAS_ALL_INCLUDES} DESTINATION include)
--- /dev/null
+#ifndef __ODAS_ACONNECTOR_CATEGORIES
+#define __ODAS_ACONNECTOR_CATEGORIES
+
+ /**
+ * \file acon_categories.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../connector/con_categories.h"
+ #include "../amessage/amsg_categories.h"
+ #include "../message/msg_categories.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct acon_categories_obj {
+
+ amsg_categories_obj * in;
+ amsg_categories_obj ** outs;
+ con_categories_obj * con_categories;
+ thread_obj * thread;
+
+ } acon_categories_obj;
+
+ acon_categories_obj * acon_categories_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_categories_cfg * msg_categories_config);
+
+ void acon_categories_destroy(acon_categories_obj * obj);
+
+ void * acon_categories_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ACONNECTOR_HOPS
+#define __ODAS_ACONNECTOR_HOPS
+
+ /**
+ * \file acon_hops.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../connector/con_hops.h"
+ #include "../amessage/amsg_hops.h"
+ #include "../message/msg_hops.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct acon_hops_obj {
+
+ amsg_hops_obj * in;
+ amsg_hops_obj ** outs;
+ con_hops_obj * con_hops;
+ thread_obj * thread;
+
+ } acon_hops_obj;
+
+ acon_hops_obj * acon_hops_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_hops_cfg * msg_hops_config);
+
+ void acon_hops_destroy(acon_hops_obj * obj);
+
+ void * acon_hops_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ACONNECTOR_POTS
+#define __ODAS_ACONNECTOR_POTS
+
+ /**
+ * \file acon_pots.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../connector/con_pots.h"
+ #include "../amessage/amsg_pots.h"
+ #include "../message/msg_pots.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct acon_pots_obj {
+
+ amsg_pots_obj * in;
+ amsg_pots_obj ** outs;
+ con_pots_obj * con_pots;
+ thread_obj * thread;
+
+ } acon_pots_obj;
+
+ acon_pots_obj * acon_pots_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_pots_cfg * msg_pots_config);
+
+ void acon_pots_destroy(acon_pots_obj * obj);
+
+ void * acon_pots_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ACONNECTOR_POWERS
+#define __ODAS_ACONNECTOR_POWERS
+
+ /**
+ * \file acon_powers.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../connector/con_powers.h"
+ #include "../amessage/amsg_powers.h"
+ #include "../message/msg_powers.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct acon_powers_obj {
+
+ amsg_powers_obj * in;
+ amsg_powers_obj ** outs;
+ con_powers_obj * con_powers;
+ thread_obj * thread;
+
+ } acon_powers_obj;
+
+ acon_powers_obj * acon_powers_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_powers_cfg * msg_powers_config);
+
+ void acon_powers_destroy(acon_powers_obj * obj);
+
+ void * acon_powers_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ACONNECTOR_SPECTRA
+#define __ODAS_ACONNECTOR_SPECTRA
+
+ /**
+ * \file acon_spectra.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../connector/con_spectra.h"
+ #include "../amessage/amsg_spectra.h"
+ #include "../message/msg_spectra.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct acon_spectra_obj {
+
+ amsg_spectra_obj * in;
+ amsg_spectra_obj ** outs;
+ con_spectra_obj * con_spectra;
+ thread_obj * thread;
+
+ } acon_spectra_obj;
+
+ acon_spectra_obj * acon_spectra_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_spectra_cfg * msg_spectra_config);
+
+ void acon_spectra_destroy(acon_spectra_obj * obj);
+
+ void * acon_spectra_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ACONNECTOR_TARGETS
+#define __ODAS_ACONNECTOR_TARGETS
+
+ /**
+ * \file acon_targets.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../connector/con_targets.h"
+ #include "../amessage/amsg_targets.h"
+ #include "../message/msg_targets.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct acon_targets_obj {
+
+ amsg_targets_obj * in;
+ amsg_targets_obj ** outs;
+ con_targets_obj * con_targets;
+ thread_obj * thread;
+
+ } acon_targets_obj;
+
+ acon_targets_obj * acon_targets_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_targets_cfg * msg_targets_config);
+
+ void acon_targets_destroy(acon_targets_obj * obj);
+
+ void * acon_targets_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ACONNECTOR_TRACKS
+#define __ODAS_ACONNECTOR_TRACKS
+
+ /**
+ * \file acon_tracks.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../connector/con_tracks.h"
+ #include "../amessage/amsg_tracks.h"
+ #include "../message/msg_tracks.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct acon_tracks_obj {
+
+ amsg_tracks_obj * in;
+ amsg_tracks_obj ** outs;
+ con_tracks_obj * con_tracks;
+ thread_obj * thread;
+
+ } acon_tracks_obj;
+
+ acon_tracks_obj * acon_tracks_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_tracks_cfg * msg_tracks_config);
+
+ void acon_tracks_destroy(acon_tracks_obj * obj);
+
+ void * acon_tracks_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AINJECTOR_TARGETS
+#define __ODAS_AINJECTOR_TARGETS
+
+ /**
+ * \file ainj_targets.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../injector/inj_targets.h"
+ #include "../amessage/amsg_hops.h"
+ #include "../amessage/amsg_targets.h"
+ #include "../general/thread.h"
+
+ typedef struct ainj_targets_obj {
+
+ inj_targets_obj * inj_targets;
+ amsg_hops_obj * in;
+ amsg_targets_obj * out;
+ thread_obj * thread;
+
+ } ainj_targets_obj;
+
+ ainj_targets_obj * ainj_targets_construct(const inj_targets_cfg * inj_targets_config, const msg_hops_cfg * msg_hops_config, const msg_targets_cfg * msg_targets_config);
+
+ void ainj_targets_destroy(ainj_targets_obj * obj);
+
+ void ainj_targets_connect(ainj_targets_obj * obj, amsg_hops_obj * in, amsg_targets_obj * out);
+
+ void ainj_targets_disconnect(ainj_targets_obj * obj);
+
+ void * ainj_targets_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMESSAGE_CATEGORIES
+#define __ODAS_AMESSAGE_CATEGORIES
+
+ /**
+ * \file amsg_categories.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include "../message/msg_categories.h"
+ #include "../utils/fifo.h"
+
+ typedef struct amsg_categories_obj {
+
+ unsigned int nMessages;
+ fifo_obj * filled;
+ fifo_obj * empty;
+
+ } amsg_categories_obj;
+
+ amsg_categories_obj * amsg_categories_construct(const unsigned int nMessages, const msg_categories_cfg * msg_categories_config);
+
+ void amsg_categories_destroy(amsg_categories_obj * obj);
+
+ msg_categories_obj * amsg_categories_filled_pop(amsg_categories_obj * obj);
+
+ void amsg_categories_filled_push(amsg_categories_obj * obj, msg_categories_obj * msg_categories);
+
+ msg_categories_obj * amsg_categories_empty_pop(amsg_categories_obj * obj);
+
+ void amsg_categories_empty_push(amsg_categories_obj * obj, msg_categories_obj * msg_categories);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMESSAGE_HOPS
+#define __ODAS_AMESSAGE_HOPS
+
+ /**
+ * \file amsg_hops.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include "../message/msg_hops.h"
+ #include "../utils/fifo.h"
+
+ typedef struct amsg_hops_obj {
+
+ unsigned int nMessages;
+ fifo_obj * filled;
+ fifo_obj * empty;
+
+ } amsg_hops_obj;
+
+ amsg_hops_obj * amsg_hops_construct(const unsigned int nMessages, const msg_hops_cfg * msg_hops_config);
+
+ void amsg_hops_destroy(amsg_hops_obj * obj);
+
+ msg_hops_obj * amsg_hops_filled_pop(amsg_hops_obj * obj);
+
+ void amsg_hops_filled_push(amsg_hops_obj * obj, msg_hops_obj * msg_hops);
+
+ msg_hops_obj * amsg_hops_empty_pop(amsg_hops_obj * obj);
+
+ void amsg_hops_empty_push(amsg_hops_obj * obj, msg_hops_obj * msg_hops);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMESSAGE_POTS
+#define __ODAS_AMESSAGE_POTS
+
+ /**
+ * \file amsg_pots.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include "../message/msg_pots.h"
+ #include "../utils/fifo.h"
+
+ typedef struct amsg_pots_obj {
+
+ unsigned int nMessages;
+ fifo_obj * filled;
+ fifo_obj * empty;
+
+ } amsg_pots_obj;
+
+ amsg_pots_obj * amsg_pots_construct(const unsigned int nMessages, const msg_pots_cfg * msg_pots_config);
+
+ void amsg_pots_destroy(amsg_pots_obj * obj);
+
+ msg_pots_obj * amsg_pots_filled_pop(amsg_pots_obj * obj);
+
+ void amsg_pots_filled_push(amsg_pots_obj * obj, msg_pots_obj * msg_pots);
+
+ msg_pots_obj * amsg_pots_empty_pop(amsg_pots_obj * obj);
+
+ void amsg_pots_empty_push(amsg_pots_obj * obj, msg_pots_obj * msg_pots);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMESSAGE_POWERS
+#define __ODAS_AMESSAGE_POWERS
+
+ /**
+ * \file amsg_powers.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include "../message/msg_powers.h"
+ #include "../utils/fifo.h"
+
+ typedef struct amsg_powers_obj {
+
+ unsigned int nMessages;
+ fifo_obj * filled;
+ fifo_obj * empty;
+
+ } amsg_powers_obj;
+
+ amsg_powers_obj * amsg_powers_construct(const unsigned int nMessages, const msg_powers_cfg * msg_powers_config);
+
+ void amsg_powers_destroy(amsg_powers_obj * obj);
+
+ msg_powers_obj * amsg_powers_filled_pop(amsg_powers_obj * obj);
+
+ void amsg_powers_filled_push(amsg_powers_obj * obj, msg_powers_obj * msg_powers);
+
+ msg_powers_obj * amsg_powers_empty_pop(amsg_powers_obj * obj);
+
+ void amsg_powers_empty_push(amsg_powers_obj * obj, msg_powers_obj * msg_powers);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMESSAGE_SPECTRA
+#define __ODAS_AMESSAGE_SPECTRA
+
+ /**
+ * \file amsg_spectra.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include "../message/msg_spectra.h"
+ #include "../utils/fifo.h"
+
+ typedef struct amsg_spectra_obj {
+
+ unsigned int nMessages;
+ fifo_obj * filled;
+ fifo_obj * empty;
+
+ } amsg_spectra_obj;
+
+ amsg_spectra_obj * amsg_spectra_construct(const unsigned int nMessages, const msg_spectra_cfg * msg_spectra_config);
+
+ void amsg_spectra_destroy(amsg_spectra_obj * obj);
+
+ msg_spectra_obj * amsg_spectra_filled_pop(amsg_spectra_obj * obj);
+
+ void amsg_spectra_filled_push(amsg_spectra_obj * obj, msg_spectra_obj * msg_spectra);
+
+ msg_spectra_obj * amsg_spectra_empty_pop(amsg_spectra_obj * obj);
+
+ void amsg_spectra_empty_push(amsg_spectra_obj * obj, msg_spectra_obj * msg_spectra);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMESSAGE_TARGETS
+#define __ODAS_AMESSAGE_TARGETS
+
+ /**
+ * \file amsg_targets.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include "../message/msg_targets.h"
+ #include "../utils/fifo.h"
+
+ typedef struct amsg_targets_obj {
+
+ unsigned int nMessages;
+ fifo_obj * filled;
+ fifo_obj * empty;
+
+ } amsg_targets_obj;
+
+ amsg_targets_obj * amsg_targets_construct(const unsigned int nMessages, const msg_targets_cfg * msg_targets_config);
+
+ void amsg_targets_destroy(amsg_targets_obj * obj);
+
+ msg_targets_obj * amsg_targets_filled_pop(amsg_targets_obj * obj);
+
+ void amsg_targets_filled_push(amsg_targets_obj * obj, msg_targets_obj * msg_targets);
+
+ msg_targets_obj * amsg_targets_empty_pop(amsg_targets_obj * obj);
+
+ void amsg_targets_empty_push(amsg_targets_obj * obj, msg_targets_obj * msg_targets);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMESSAGE_TRACKS
+#define __ODAS_AMESSAGE_TRACKS
+
+ /**
+ * \file amsg_tracks.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include "../message/msg_tracks.h"
+ #include "../utils/fifo.h"
+
+ typedef struct amsg_tracks_obj {
+
+ unsigned int nMessages;
+ fifo_obj * filled;
+ fifo_obj * empty;
+
+ } amsg_tracks_obj;
+
+ amsg_tracks_obj * amsg_tracks_construct(const unsigned int nMessages, const msg_tracks_cfg * msg_tracks_config);
+
+ void amsg_tracks_destroy(amsg_tracks_obj * obj);
+
+ msg_tracks_obj * amsg_tracks_filled_pop(amsg_tracks_obj * obj);
+
+ void amsg_tracks_filled_push(amsg_tracks_obj * obj, msg_tracks_obj * msg_tracks);
+
+ msg_tracks_obj * amsg_tracks_empty_pop(amsg_tracks_obj * obj);
+
+ void amsg_tracks_empty_push(amsg_tracks_obj * obj, msg_tracks_obj * msg_tracks);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMODULE_CLASSIFY
+#define __ODAS_AMODULE_CLASSIFY
+
+ /**
+ * \file amod_classify.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../module/mod_classify.h"
+ #include "../amessage/amsg_hops.h"
+ #include "../amessage/amsg_tracks.h"
+ #include "../amessage/amsg_categories.h"
+ #include "../general/thread.h"
+
+ typedef struct amod_classify_obj {
+
+ mod_classify_obj * mod_classify;
+ amsg_hops_obj * in1;
+ amsg_tracks_obj * in2;
+ amsg_categories_obj * out;
+ thread_obj * thread;
+
+ } amod_classify_obj;
+
+ amod_classify_obj * amod_classify_construct(const mod_classify_cfg * mod_classify_config, const msg_hops_cfg * msg_hops_config, const msg_tracks_cfg * msg_tracks_config, const msg_categories_cfg * msg_categories_config);
+
+ void amod_classify_destroy(amod_classify_obj * obj);
+
+ void amod_classify_connect(amod_classify_obj * obj, amsg_hops_obj * in1, amsg_tracks_obj * in2, amsg_categories_obj * out);
+
+ void amod_classify_disconnect(amod_classify_obj * obj);
+
+ void * amod_classify_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMODULE_ISTFT
+#define __ODAS_AMODULE_ISTFT
+
+ /**
+ * \file amod_istft.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../module/mod_istft.h"
+ #include "../amessage/amsg_spectra.h"
+ #include "../amessage/amsg_hops.h"
+ #include "../general/thread.h"
+
+ typedef struct amod_istft_obj {
+
+ mod_istft_obj * mod_istft;
+ amsg_spectra_obj * in;
+ amsg_hops_obj * out;
+ thread_obj * thread;
+
+ } amod_istft_obj;
+
+ amod_istft_obj * amod_istft_construct(const mod_istft_cfg * mod_istft_config, const msg_spectra_cfg * msg_spectra_config, const msg_hops_cfg * msg_hops_config);
+
+ void amod_istft_destroy(amod_istft_obj * obj);
+
+ void amod_istft_connect(amod_istft_obj * obj, amsg_spectra_obj * in, amsg_hops_obj * out);
+
+ void amod_istft_disconnect(amod_istft_obj * obj);
+
+ void * amod_istft_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMODULE_MAPPING
+#define __ODAS_AMODULE_MAPPING
+
+ /**
+ * \file amod_mapping.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../module/mod_mapping.h"
+ #include "../amessage/amsg_hops.h"
+ #include "../general/thread.h"
+
+ typedef struct amod_mapping_obj {
+
+ mod_mapping_obj * mod_mapping;
+ amsg_hops_obj * in;
+ amsg_hops_obj * out;
+ thread_obj * thread;
+
+ } amod_mapping_obj;
+
+ amod_mapping_obj * amod_mapping_construct(const mod_mapping_cfg * mod_mapping_config, const msg_hops_cfg * msg_hops_config);
+
+ void amod_mapping_destroy(amod_mapping_obj * obj);
+
+ void amod_mapping_connect(amod_mapping_obj * obj, amsg_hops_obj * in, amsg_hops_obj * out);
+
+ void amod_mapping_disconnect(amod_mapping_obj * obj);
+
+ void * amod_mapping_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMODULE_NOISE
+#define __ODAS_AMODULE_NOISE
+
+ /**
+ * \file amod_noise.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../module/mod_noise.h"
+ #include "../amessage/amsg_spectra.h"
+ #include "../amessage/amsg_powers.h"
+ #include "../general/thread.h"
+
+ typedef struct amod_noise_obj {
+
+ mod_noise_obj * mod_noise;
+ amsg_spectra_obj * in;
+ amsg_powers_obj * out;
+ thread_obj * thread;
+
+ } amod_noise_obj;
+
+ amod_noise_obj * amod_noise_construct(const mod_noise_cfg * mod_noise_config, const msg_spectra_cfg * msg_spectra_config, const msg_powers_cfg * msg_powers_config);
+
+ void amod_noise_destroy(amod_noise_obj * obj);
+
+ void amod_noise_connect(amod_noise_obj * obj, amsg_spectra_obj * in, amsg_powers_obj * out);
+
+ void amod_noise_disconnect(amod_noise_obj * obj);
+
+ void * amod_noise_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMODULE_RESAMPLE
+#define __ODAS_AMODULE_RESAMPLE
+
+ /**
+ * \file amod_resample.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../module/mod_resample.h"
+ #include "../amessage/amsg_hops.h"
+ #include "../general/thread.h"
+
+ typedef struct amod_resample_obj {
+
+ mod_resample_obj * mod_resample;
+ amsg_hops_obj * in;
+ amsg_hops_obj * out;
+ thread_obj * thread;
+
+ } amod_resample_obj;
+
+ amod_resample_obj * amod_resample_construct(const mod_resample_cfg * mod_resample_config, const msg_hops_cfg * msg_hops_in_config, const msg_hops_cfg * msg_hops_out_config);
+
+ void amod_resample_destroy(amod_resample_obj * obj);
+
+ void amod_resample_connect(amod_resample_obj * obj, amsg_hops_obj * in, amsg_hops_obj * out);
+
+ void amod_resample_disconnect(amod_resample_obj * obj);
+
+ void * amod_resample_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMODULE_SSL
+#define __ODAS_AMODULE_SSL
+
+ /**
+ * \file amod_ssl.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../module/mod_ssl.h"
+ #include "../amessage/amsg_spectra.h"
+ #include "../amessage/amsg_powers.h"
+ #include "../amessage/amsg_pots.h"
+ #include "../general/thread.h"
+
+ typedef struct amod_ssl_obj {
+
+ mod_ssl_obj * mod_ssl;
+ amsg_spectra_obj * in;
+ amsg_pots_obj * out;
+ thread_obj * thread;
+
+ } amod_ssl_obj;
+
+ amod_ssl_obj * amod_ssl_construct(const mod_ssl_cfg * mod_ssl_config, const msg_spectra_cfg * msg_spectra_config, const msg_pots_cfg * msg_pots_config);
+
+ void amod_ssl_destroy(amod_ssl_obj * obj);
+
+ void amod_ssl_connect(amod_ssl_obj * obj, amsg_spectra_obj * in, amsg_pots_obj * out);
+
+ void amod_ssl_disconnect(amod_ssl_obj * obj);
+
+ void * amod_ssl_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMODULE_SSS
+#define __ODAS_AMODULE_SSS
+
+ /**
+ * \file amod_sss.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../module/mod_sss.h"
+ #include "../amessage/amsg_powers.h"
+ #include "../amessage/amsg_tracks.h"
+ #include "../amessage/amsg_spectra.h"
+ #include "../general/thread.h"
+
+ typedef struct amod_sss_obj {
+
+ mod_sss_obj * mod_sss;
+ amsg_spectra_obj * in1;
+ amsg_powers_obj * in2;
+ amsg_tracks_obj * in3;
+ amsg_spectra_obj * out1;
+ amsg_spectra_obj * out2;
+ thread_obj * thread;
+
+ } amod_sss_obj;
+
+ amod_sss_obj * amod_sss_construct(const mod_sss_cfg * mod_sss_config, const msg_tracks_cfg * msg_tracks_config, const msg_spectra_cfg * msg_spectra_config);
+
+ void amod_sss_destroy(amod_sss_obj * obj);
+
+ void amod_sss_connect(amod_sss_obj * obj, amsg_spectra_obj * in1, amsg_powers_obj * in2, amsg_tracks_obj * in3, amsg_spectra_obj * out1, amsg_spectra_obj * out2);
+
+ void amod_sss_disconnect(amod_sss_obj * obj);
+
+ void * amod_sss_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMODULE_SST
+#define __ODAS_AMODULE_SST
+
+ /**
+ * \file amod_sst.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../module/mod_ssl.h"
+ #include "../module/mod_sst.h"
+ #include "../amessage/amsg_pots.h"
+ #include "../amessage/amsg_targets.h"
+ #include "../amessage/amsg_tracks.h"
+ #include "../general/thread.h"
+
+ typedef struct amod_sst_obj {
+
+ mod_sst_obj * mod_sst;
+ amsg_pots_obj * in1;
+ amsg_targets_obj * in2;
+ amsg_tracks_obj * out;
+ thread_obj * thread;
+
+ } amod_sst_obj;
+
+ amod_sst_obj * amod_sst_construct(const mod_sst_cfg * mod_sst_config, const mod_ssl_cfg * mod_ssl_config, const msg_pots_cfg * msg_pots_config, const msg_targets_cfg * msg_targets_config, const msg_tracks_cfg * msg_tracks_config);
+
+ void amod_sst_destroy(amod_sst_obj * obj);
+
+ void amod_sst_connect(amod_sst_obj * obj, amsg_pots_obj * in1, amsg_targets_obj * in2, amsg_tracks_obj * out);
+
+ void amod_sst_disconnect(amod_sst_obj * obj);
+
+ void * amod_sst_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMODULE_STFT
+#define __ODAS_AMODULE_STFT
+
+ /**
+ * \file amod_stft.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../module/mod_stft.h"
+ #include "../amessage/amsg_hops.h"
+ #include "../amessage/amsg_spectra.h"
+ #include "../general/thread.h"
+
+ typedef struct amod_stft_obj {
+
+ mod_stft_obj * mod_stft;
+ amsg_hops_obj * in;
+ amsg_spectra_obj * out;
+ thread_obj * thread;
+
+ } amod_stft_obj;
+
+ amod_stft_obj * amod_stft_construct(const mod_stft_cfg * mod_stft_config, const msg_hops_cfg * msg_hops_config, const msg_spectra_cfg * msg_spectra_config);
+
+ void amod_stft_destroy(amod_stft_obj * obj);
+
+ void amod_stft_connect(amod_stft_obj * obj, amsg_hops_obj * in, amsg_spectra_obj * out);
+
+ void amod_stft_disconnect(amod_stft_obj * obj);
+
+ void * amod_stft_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_AMODULE_VOLUME
+#define __ODAS_AMODULE_VOLUME
+
+ /**
+ * \file amod_volume.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../module/mod_volume.h"
+ #include "../amessage/amsg_hops.h"
+ #include "../general/thread.h"
+
+ typedef struct amod_volume_obj {
+
+ mod_volume_obj * mod_volume;
+ amsg_hops_obj * in;
+ amsg_hops_obj * out;
+ thread_obj * thread;
+
+ } amod_volume_obj;
+
+ amod_volume_obj * amod_volume_construct(const mod_volume_cfg * mod_volume_config, const msg_hops_cfg * msg_hops_config);
+
+ void amod_volume_destroy(amod_volume_obj * obj);
+
+ void amod_volume_connect(amod_volume_obj * obj, amsg_hops_obj * in, amsg_hops_obj * out);
+
+ void amod_volume_disconnect(amod_volume_obj * obj);
+
+ void * amod_volume_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ASINK_CATEGORIES
+#define __ODAS_ASINK_CATEGORIES
+
+ /**
+ * \file asink_categories.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../amessage/amsg_categories.h"
+ #include "../sink/snk_categories.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+
+ typedef struct asnk_categories_obj {
+
+ snk_categories_obj * snk_categories;
+ amsg_categories_obj * in;
+ thread_obj * thread;
+
+ } asnk_categories_obj;
+
+ asnk_categories_obj * asnk_categories_construct(const snk_categories_cfg * snk_categories_config, const msg_categories_cfg * msg_categories_config);
+
+ void asnk_categories_destroy(asnk_categories_obj * obj);
+
+ void asnk_categories_connect(asnk_categories_obj * obj, amsg_categories_obj * in);
+
+ void asnk_categories_disconnect(asnk_categories_obj * obj);
+
+ void * asnk_categories_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ASINK_HOPS
+#define __ODAS_ASINK_HOPS
+
+ /**
+ * \file asink_hops.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../amessage/amsg_hops.h"
+ #include "../sink/snk_hops.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+
+ typedef struct asnk_hops_obj {
+
+ snk_hops_obj * snk_hops;
+ amsg_hops_obj * in;
+ thread_obj * thread;
+
+ } asnk_hops_obj;
+
+ asnk_hops_obj * asnk_hops_construct(const snk_hops_cfg * snk_hops_config, const msg_hops_cfg * msg_hops_config);
+
+ void asnk_hops_destroy(asnk_hops_obj * obj);
+
+ void asnk_hops_connect(asnk_hops_obj * obj, amsg_hops_obj * in);
+
+ void asnk_hops_disconnect(asnk_hops_obj * obj);
+
+ void * asnk_hops_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ASINK_POTS
+#define __ODAS_ASINK_POTS
+
+ /**
+ * \file asink_pots.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../amessage/amsg_pots.h"
+ #include "../sink/snk_pots.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+
+ typedef struct asnk_pots_obj {
+
+ snk_pots_obj * snk_pots;
+ amsg_pots_obj * in;
+ thread_obj * thread;
+
+ } asnk_pots_obj;
+
+ asnk_pots_obj * asnk_pots_construct(const snk_pots_cfg * snk_pots_config, const msg_pots_cfg * msg_pots_config);
+
+ void asnk_pots_destroy(asnk_pots_obj * obj);
+
+ void asnk_pots_connect(asnk_pots_obj * obj, amsg_pots_obj * in);
+
+ void asnk_pots_disconnect(asnk_pots_obj * obj);
+
+ void * asnk_pots_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ASINK_POWERS
+#define __ODAS_ASINK_POWERS
+
+ /**
+ * \file asink_powers.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../amessage/amsg_powers.h"
+ #include "../sink/snk_powers.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+
+ typedef struct asnk_powers_obj {
+
+ snk_powers_obj * snk_powers;
+ amsg_powers_obj * in;
+ thread_obj * thread;
+
+ } asnk_powers_obj;
+
+ asnk_powers_obj * asnk_powers_construct(const snk_powers_cfg * snk_powers_config, const msg_powers_cfg * msg_powers_config);
+
+ void asnk_powers_destroy(asnk_powers_obj * obj);
+
+ void asnk_powers_connect(asnk_powers_obj * obj, amsg_powers_obj * in);
+
+ void asnk_powers_disconnect(asnk_powers_obj * obj);
+
+ void * asnk_powers_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ASINK_SPECTRA
+#define __ODAS_ASINK_SPECTRA
+
+ /**
+ * \file asink_spectra.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../amessage/amsg_spectra.h"
+ #include "../sink/snk_spectra.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+
+ typedef struct asnk_spectra_obj {
+
+ snk_spectra_obj * snk_spectra;
+ amsg_spectra_obj * in;
+ thread_obj * thread;
+
+ } asnk_spectra_obj;
+
+ asnk_spectra_obj * asnk_spectra_construct(const snk_spectra_cfg * snk_spectra_config, const msg_spectra_cfg * msg_spectra_config);
+
+ void asnk_spectra_destroy(asnk_spectra_obj * obj);
+
+ void asnk_spectra_connect(asnk_spectra_obj * obj, amsg_spectra_obj * in);
+
+ void asnk_spectra_disconnect(asnk_spectra_obj * obj);
+
+ void * asnk_spectra_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ASINK_TRACKS
+#define __ODAS_ASINK_TRACKS
+
+ /**
+ * \file asink_tracks.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../amessage/amsg_tracks.h"
+ #include "../sink/snk_tracks.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+
+ typedef struct asnk_tracks_obj {
+
+ snk_tracks_obj * snk_tracks;
+ amsg_tracks_obj * in;
+ thread_obj * thread;
+
+ } asnk_tracks_obj;
+
+ asnk_tracks_obj * asnk_tracks_construct(const snk_tracks_cfg * snk_tracks_config, const msg_tracks_cfg * msg_tracks_config);
+
+ void asnk_tracks_destroy(asnk_tracks_obj * obj);
+
+ void asnk_tracks_connect(asnk_tracks_obj * obj, amsg_tracks_obj * in);
+
+ void asnk_tracks_disconnect(asnk_tracks_obj * obj);
+
+ void * asnk_tracks_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_ASOURCE_HOPS
+#define __ODAS_ASOURCE_HOPS
+
+ /**
+ * \file asource_hops.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../amessage/amsg_hops.h"
+ #include "../source/src_hops.h"
+ #include "../general/thread.h"
+
+ #include <stdlib.h>
+
+ typedef struct asrc_hops_obj {
+
+ src_hops_obj * src_hops;
+ amsg_hops_obj * out;
+ thread_obj * thread;
+
+ } asrc_hops_obj;
+
+ asrc_hops_obj * asrc_hops_construct(const src_hops_cfg * src_hops_config, const msg_hops_cfg * msg_hops_config);
+
+ void asrc_hops_destroy(asrc_hops_obj * obj);
+
+ void asrc_hops_connect(asrc_hops_obj * obj, amsg_hops_obj * out);
+
+ void asrc_hops_disconnect(asrc_hops_obj * obj);
+
+ void * asrc_hops_thread(void * ptr);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_CONNECTOR_CATEGORIES
+#define __ODAS_CONNECTOR_CATEGORIES
+
+ /**
+ * \file con_categories.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../message/msg_categories.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct con_categories_obj {
+
+ msg_categories_obj * in;
+ msg_categories_obj ** outs;
+
+ unsigned int nOuts;
+
+ } con_categories_obj;
+
+ con_categories_obj * con_categories_construct(const unsigned int nOuts, const msg_categories_cfg * msg_categories_config);
+
+ void con_categories_destroy(con_categories_obj * obj);
+
+ int con_categories_process(con_categories_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+ /**
+ * \file con_hops.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef __ODAS_CONNECTOR_HOPS
+#define __ODAS_CONNECTOR_HOPS
+
+ #include "../message/msg_hops.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct con_hops_obj {
+
+ msg_hops_obj * in;
+ msg_hops_obj ** outs;
+
+ unsigned int nOuts;
+
+ } con_hops_obj;
+
+ con_hops_obj * con_hops_construct(const unsigned int nOuts, const msg_hops_cfg * msg_hops_config);
+
+ void con_hops_destroy(con_hops_obj * obj);
+
+ int con_hops_process(con_hops_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_CONNECTOR_POTS
+#define __ODAS_CONNECTOR_POTS
+
+ /**
+ * \file con_pots.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../message/msg_pots.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct con_pots_obj {
+
+ msg_pots_obj * in;
+ msg_pots_obj ** outs;
+
+ unsigned int nOuts;
+
+ } con_pots_obj;
+
+ con_pots_obj * con_pots_construct(const unsigned int nOuts, const msg_pots_cfg * msg_pots_config);
+
+ void con_pots_destroy(con_pots_obj * obj);
+
+ int con_pots_process(con_pots_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_CONNECTOR_POWERS
+#define __ODAS_CONNECTOR_POWERS
+
+ /**
+ * \file con_powers.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../message/msg_powers.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct con_powers_obj {
+
+ msg_powers_obj * in;
+ msg_powers_obj ** outs;
+
+ unsigned int nOuts;
+
+ } con_powers_obj;
+
+ con_powers_obj * con_powers_construct(const unsigned int nOuts, const msg_powers_cfg * msg_powers_config);
+
+ void con_powers_destroy(con_powers_obj * obj);
+
+ int con_powers_process(con_powers_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_CONNECTOR_SPECTRA
+#define __ODAS_CONNECTOR_SPECTRA
+
+ /**
+ * \file con_spectra.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../message/msg_spectra.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct con_spectra_obj {
+
+ msg_spectra_obj * in;
+ msg_spectra_obj ** outs;
+
+ unsigned int nOuts;
+
+ } con_spectra_obj;
+
+ con_spectra_obj * con_spectra_construct(const unsigned int nOuts, const msg_spectra_cfg * msg_spectra_config);
+
+ void con_spectra_destroy(con_spectra_obj * obj);
+
+ int con_spectra_process(con_spectra_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_CONNECTOR_TARGETS
+#define __ODAS_CONNECTOR_TARGETS
+
+ /**
+ * \file con_targets.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../message/msg_targets.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct con_targets_obj {
+
+ msg_targets_obj * in;
+ msg_targets_obj ** outs;
+
+ unsigned int nOuts;
+
+ } con_targets_obj;
+
+ con_targets_obj * con_targets_construct(const unsigned int nOuts, const msg_targets_cfg * msg_targets_config);
+
+ void con_targets_destroy(con_targets_obj * obj);
+
+ int con_targets_process(con_targets_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_CONNECTOR_TRACKS
+#define __ODAS_CONNECTOR_TRACKS
+
+ /**
+ * \file con_tracks.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../message/msg_tracks.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct con_tracks_obj {
+
+ msg_tracks_obj * in;
+ msg_tracks_obj ** outs;
+
+ unsigned int nOuts;
+
+ } con_tracks_obj;
+
+ con_tracks_obj * con_tracks_construct(const unsigned int nOuts, const msg_tracks_cfg * msg_tracks_config);
+
+ void con_tracks_destroy(con_tracks_obj * obj);
+
+ int con_tracks_process(con_tracks_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_GENERAL_FORMAT
+#define __ODAS_GENERAL_FORMAT
+
+ /**
+ * \file format.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef enum format_type {
+
+ format_undefined = 0,
+ format_binary_int08 = 8,
+ format_binary_int16 = 16,
+ format_binary_int24 = 24,
+ format_binary_int32 = 32,
+ format_binary_float = 1,
+ format_text_json = 2,
+
+ } format_type;
+
+ typedef struct format_obj {
+
+ format_type type;
+
+ } format_obj;
+
+ format_obj * format_construct();
+
+ format_obj * format_construct_undefined();
+
+ format_obj * format_construct_binary_int(const unsigned int nBits);
+
+ format_obj * format_construct_binary_float();
+
+ format_obj * format_construct_text_json();
+
+ format_obj * format_clone(const format_obj * obj);
+
+ void format_destroy(format_obj * obj);
+
+ void format_printf(const format_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_GENERAL_INTERFACE
+#define __ODAS_GENERAL_INTERFACE
+
+ /**
+ * \file interface.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+
+ typedef enum interface_type {
+
+ interface_undefined = 0,
+ interface_blackhole = 1,
+ interface_file = 2,
+ interface_socket = 3,
+ interface_soundcard = 4,
+ interface_terminal = 5,
+
+ } interface_type;
+
+ typedef struct interface_obj {
+
+ interface_type type;
+
+ char * fileName;
+
+ char * ip;
+ unsigned int port;
+
+ unsigned int card;
+ unsigned int device;
+
+ } interface_obj;
+
+ interface_obj * interface_construct();
+
+ interface_obj * interface_construct_blackhole();
+
+ interface_obj * interface_construct_file(const char * fileName);
+
+ interface_obj * interface_construct_socket(const char * ip, const unsigned int port);
+
+ interface_obj * interface_construct_soundcard(const unsigned int card, const unsigned int device);
+
+ interface_obj * interface_construct_terminal(void);
+
+ interface_obj * interface_clone(const interface_obj * obj);
+
+ void interface_destroy(interface_obj * obj);
+
+ void interface_printf(const interface_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_GENERAL_LINK
+#define __ODAS_GENERAL_LINK
+
+ /**
+ * \file link.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+
+ typedef struct links_obj {
+
+ unsigned int * array;
+ unsigned int nLinks;
+
+ } links_obj;
+
+ links_obj * links_construct_zero(const unsigned int nLinks);
+
+ links_obj * links_clone(const links_obj * obj);
+
+ void links_destroy(links_obj * obj);
+
+ void links_printf(const links_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_GENERAL_MIC
+#define __ODAS_GENERAL_MIC
+
+ /**
+ * \file mic.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+
+ typedef struct mics_obj {
+
+ unsigned int nChannels;
+ unsigned int nPairs;
+ float * mu;
+ float * sigma2;
+ float * direction;
+ float * thetaAllPass;
+ float * thetaNoPass;
+
+ } mics_obj;
+
+ mics_obj * mics_construct_zero(const unsigned int nChannels);
+
+ mics_obj * mics_clone(const mics_obj * obj);
+
+ void mics_destroy(mics_obj * obj);
+
+ void mics_printf(const mics_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_GENERAL_SAMPLERATE
+#define __ODAS_GENERAL_SAMPLERATE
+
+ /**
+ * \file samplerate.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct samplerate_obj {
+
+ unsigned int mu;
+ float sigma2;
+
+ } samplerate_obj;
+
+ samplerate_obj * samplerate_construct_zero(void);
+
+ samplerate_obj * samplerate_clone(const samplerate_obj * obj);
+
+ void samplerate_destroy(samplerate_obj * obj);
+
+ void samplerate_printf(const samplerate_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_GENERAL_SOUNDSPEED
+#define __ODAS_GENERAL_SOUNDSPEED
+
+ /**
+ * \file soundspeed.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ typedef struct soundspeed_obj {
+
+ float mu;
+ float sigma2;
+
+ } soundspeed_obj;
+
+ soundspeed_obj * soundspeed_construct_zero(void);
+
+ soundspeed_obj * soundspeed_clone(const soundspeed_obj * obj);
+
+ void soundspeed_destroy(soundspeed_obj * obj);
+
+ void soundspeed_printf(const soundspeed_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_SPATIALFILTER
+#define __ODAS_SIGNAL_SPATIALFILTER
+
+ /**
+ * \file spatialfilter.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct spatialfilter_obj {
+
+ float * direction;
+ float thetaAllPass;
+ float thetaNoPass;
+
+ } spatialfilter_obj;
+
+ spatialfilter_obj * spatialfilter_construct_zero(void);
+
+ spatialfilter_obj * spatialfilter_clone(const spatialfilter_obj * obj);
+
+ void spatialfilter_destroy(spatialfilter_obj * obj);
+
+ void spatialfilter_printf(const spatialfilter_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_GENERAL_THREAD
+#define __ODAS_GENERAL_THREAD
+
+ /**
+ * \file thread.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <pthread.h>
+
+ typedef struct thread_obj {
+
+ pthread_mutex_t use;
+ char stop;
+ pthread_t thread;
+ void * (* start_routine) (void *);
+ void * arg;
+
+ } thread_obj;
+
+ thread_obj * thread_construct(void * (* start_routine) (void *), void * arg);
+
+ void thread_destroy(thread_obj * obj);
+
+ void thread_start(thread_obj * obj);
+
+ void thread_stop(thread_obj * obj);
+
+ char thread_askedToStop(thread_obj * obj);
+
+ void thread_join(thread_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_INIT_COMBINING
+#define __ODAS_INIT_COMBINING
+
+ /**
+ * \file combining.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <signal/assignation.h>
+
+ assignations_obj * combining_generate(const unsigned int nPots, const unsigned int nTracks);
+
+#endif
--- /dev/null
+#ifndef __ODAS_INIT_DELAY
+#define __ODAS_INIT_DELAY
+
+ /**
+ * \file delay.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <math.h>
+
+ #include <general/mic.h>
+ #include <general/soundspeed.h>
+
+ #include <signal/delta.h>
+ #include <signal/point.h>
+ #include <signal/tdoa.h>
+ #include <signal/tau.h>
+
+ tdoas_obj * delay_tdoas(const points_obj * points, const mics_obj * mics, const soundspeed_obj * soundspeed, const unsigned int fS, const unsigned int frameSize, const unsigned int interpRate);
+
+ //tdoas_obj * delay_tdoas_minmax(const tdoas_obj * tdoas, const deltas_obj * deltas);
+
+ //void delay_tdoas_allminmax(tdoas_obj * tdoas, const tdoas_obj * minmax);
+
+ taus_obj * delay_taus(const points_obj * points, const mics_obj * mics, const soundspeed_obj * soundspeed, const unsigned int fS, const unsigned int frameSize, const unsigned int interpRate);
+
+#endif
+
+
--- /dev/null
+#ifndef __ODAS_INIT_DIRECTIVITY
+#define __ODAS_INIT_DIRECTIVITY
+
+ /**
+ * \file directivity.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <math.h>
+
+ #include <general/mic.h>
+ #include <general/spatialfilter.h>
+
+ #include <signal/beampattern.h>
+ #include <signal/pair.h>
+ #include <signal/point.h>
+ #include <signal/spatialgain.h>
+ #include <signal/spatialindex.h>
+ #include <signal/spatialmask.h>
+
+ beampatterns_obj * directivity_beampattern_mics(const mics_obj * mics, const unsigned int nThetas);
+
+ beampatterns_obj * directivity_beampattern_spatialfilter(const spatialfilter_obj * spatialfilter, const unsigned int nThetas);
+
+ spatialgains_obj * directivity_spatialgains(const mics_obj * mics, const beampatterns_obj * beampatterns_mics, const spatialfilter_obj * spatialfilter, const beampatterns_obj * beampatterns_spatialfilter, const points_obj * points);
+
+ spatialmasks_obj * directivity_spatialmasks(const spatialgains_obj * spatialgains, const float minGain);
+
+ spatialindexes_obj * directivity_spatialindexes(const spatialmasks_obj * spatialmasks);
+
+ pairs_obj * directivity_pairs(const spatialmasks_obj * spatialmasks);
+
+ void directivity_pairsadd(pairs_obj * destPairs, const pairs_obj * srcPairs);
+
+#endif
--- /dev/null
+#ifndef __ODAS_INIT_HIT
+#define __ODAS_INIT_HIT
+
+ /**
+ * \file hit.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <math.h>
+
+ #include <signal/area.h>
+ #include <signal/tau.h>
+ #include <signal/tdoa.h>
+ #include <signal/delta.h>
+ #include <signal/spatialmask.h>
+
+ areas_obj * hit_areas_zero(const taus_obj * taus, const tdoas_obj * tdoas, const deltas_obj * deltas);
+
+ void hit_areas_pair(areas_obj * areas, const taus_obj * taus, const tdoas_obj * tdoas, const deltas_obj * deltas, const spatialmasks_obj * spatialmasks, const unsigned int iPair);
+
+ float hit_areas_min(const areas_obj * areas, const spatialmasks_obj * spatialmasks);
+
+ area_obj * hit_area_zero(const taus_obj * taus, const tdoas_obj * tdoas, const deltas_obj * deltas);
+
+ void hit_area_pair(area_obj * area, const areas_obj * areas, const taus_obj * taus, const tdoas_obj * tdoas, const deltas_obj * deltas, const spatialmasks_obj * spatialmasks, const unsigned int iPair);
+
+ deltas_obj * hit_train(const taus_obj * taus, const tdoas_obj * tdoas, const spatialmasks_obj * spatialmasks, const float probMin);
+
+ deltas_obj * hit_constant(const tdoas_obj * tdoas, const unsigned int delta);
+
+#endif
--- /dev/null
+#ifndef __ODAS_INIT_LINKING
+#define __ODAS_INIT_LINKING
+
+ /**
+ * \file linking.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <math.h>
+ #include <stdlib.h>
+ #include <string.h>
+
+ #include <signal/delta.h>
+ #include <signal/index.h>
+ #include <signal/map.h>
+ #include <signal/tdoa.h>
+ #include <signal/spatialmask.h>
+
+ maps_obj * linking_maps(const tdoas_obj * tdoasCoarse, const tdoas_obj * tdoasFine, const deltas_obj * deltasCoarse, const deltas_obj * deltasFine, const spatialmasks_obj * spatialmasksCoarse, const spatialmasks_obj * spatialmasksFine, const unsigned int nMatches);
+
+ indexes_obj * linking_indexes(const maps_obj * maps);
+
+ float linking_overlap(const float lambdaCoarseLeft, const float lambdaCoarseRight, const float lambdaFineLeft, const float lambdaFineRight);
+
+#endif
--- /dev/null
+#ifndef __ODAS_INIT_SCANNING
+#define __ODAS_INIT_SCANNING
+
+ /**
+ * \file scanning.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <general/mic.h>
+ #include <general/soundspeed.h>
+ #include <general/spatialfilter.h>
+
+ #include <signal/beampattern.h>
+ #include <signal/scan.h>
+ #include <signal/spatialgain.h>
+ #include <signal/spatialindex.h>
+ #include <signal/spatialmask.h>
+ #include <signal/map.h>
+ #include <signal/pair.h>
+ #include <signal/tau.h>
+
+ #include <init/delay.h>
+ #include <init/directivity.h>
+ #include <init/hit.h>
+ #include <init/linking.h>
+ #include <init/space.h>
+
+ scans_obj * scanning_init_scans(const mics_obj * mics, const spatialfilter_obj * spatialfilter, const unsigned int nLevels, const unsigned int * levels, const unsigned int fS, const soundspeed_obj * soundspeed, const unsigned int nMatches, const unsigned int frameSize, const signed int * deltas, const float probMin, const unsigned int nRefineLevels, const unsigned int nThetas, const float gainMin, const unsigned int interpRate);
+
+#endif
--- /dev/null
+#ifndef __ODAS_INIT_SPACE
+#define __ODAS_INIT_SPACE
+
+ /**
+ * \file space.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <math.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include "../signal/triangle.h"
+ #include "../signal/point.h"
+
+ triangles_obj * space_triangles_level_zero(void);
+
+ triangles_obj * space_triangles_level_next(const triangles_obj * triangles);
+
+ triangles_obj * space_triangles_level_level(const unsigned int level);
+
+ triangles_obj * space_triangles_points(const points_obj * points, const unsigned int index);
+
+ points_obj * space_points_triangles(const triangles_obj * triangles);
+
+ points_obj * space_points_fine(const points_obj * points, const unsigned int level);
+
+ points_obj * space_sphere(const unsigned int level);
+
+ points_obj * space_halfsphere(const unsigned int level);
+
+ float space_distances_shortest_triangles(const triangles_obj * triangles);
+
+ float space_distances_shortest_points(const points_obj * points);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_INIT_WINDOWING
+#define __ODAS_INIT_WINDOWING
+
+ /**
+ * \file windowing.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <math.h>
+
+ #include "../signal/window.h"
+
+ window_obj * windowing_hann(const unsigned int frameSize);
+
+ window_obj * windowing_roothann(const unsigned int frameSize);
+
+#endif
+
+
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_INJECTOR_TARGETS
+#define __ODAS_INJECTOR_TARGETS
+
+ /**
+ * \file inj_targets.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../message/msg_hops.h"
+ #include "../message/msg_targets.h"
+
+ #include "../general/format.h"
+ #include "../general/interface.h"
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct inj_targets_obj {
+
+ unsigned long long timeStamp;
+
+ unsigned int nTargets;
+ unsigned int fS;
+
+ msg_hops_obj * in;
+ msg_targets_obj * out;
+
+ targets_obj * targets;
+
+ } inj_targets_obj;
+
+ typedef struct inj_targets_cfg {
+
+ unsigned int nTargets;
+ targets_obj * targets;
+
+ } inj_targets_cfg;
+
+ inj_targets_obj * inj_targets_construct(const inj_targets_cfg * inj_targets_config, const msg_hops_cfg * msg_hops_config, const msg_targets_cfg * msg_targets_config);
+
+ void inj_targets_destroy(inj_targets_obj * obj);
+
+ void inj_targets_connect(inj_targets_obj * obj, msg_hops_obj * in, msg_targets_obj * out);
+
+ void inj_targets_disconnect(inj_targets_obj * obj);
+
+ int inj_targets_process(inj_targets_obj * obj);
+
+ inj_targets_cfg * inj_targets_cfg_construct(void);
+
+ void inj_targets_cfg_destroy(inj_targets_cfg * cfg);
+
+ void inj_targets_cfg_printf(const inj_targets_cfg * cfg);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MESSAGE_CATEGORIES
+#define __ODAS_MESSAGE_CATEGORIES
+
+ /**
+ * \file msg_categories.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <signal/category.h>
+
+ typedef struct msg_categories_obj {
+
+ unsigned long long timeStamp;
+ unsigned int fS;
+ categories_obj * categories;
+
+ } msg_categories_obj;
+
+ typedef struct msg_categories_cfg {
+
+ unsigned int nChannels;
+ unsigned int fS;
+
+ } msg_categories_cfg;
+
+ msg_categories_obj * msg_categories_construct(const msg_categories_cfg * msg_categories_config);
+
+ void msg_categories_destroy(msg_categories_obj * obj);
+
+ void msg_categories_copy(msg_categories_obj * dest, const msg_categories_obj * src);
+
+ void msg_categories_zero(msg_categories_obj * obj);
+
+ unsigned int msg_categories_isZero(const msg_categories_obj * obj);
+
+ msg_categories_cfg * msg_categories_cfg_construct(void);
+
+ void msg_categories_cfg_destroy(msg_categories_cfg * msg_categories_config);
+
+ void msg_categories_cfg_printf(const msg_categories_cfg * msg_categories_config);
+
+#endif
--- /dev/null
+#ifndef __ODAS_MESSAGE_HOPS
+#define __ODAS_MESSAGE_HOPS
+
+ /**
+ * \file msg_hops.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include "../signal/hop.h"
+ #include "../utils/fifo.h"
+
+ typedef struct msg_hops_obj {
+
+ unsigned long long timeStamp;
+ unsigned int fS;
+ hops_obj * hops;
+
+ } msg_hops_obj;
+
+ typedef struct msg_hops_cfg {
+
+ unsigned int hopSize;
+ unsigned int nChannels;
+ unsigned int fS;
+
+ } msg_hops_cfg;
+
+ msg_hops_obj * msg_hops_construct(const msg_hops_cfg * msg_hops_config);
+
+ void msg_hops_destroy(msg_hops_obj * obj);
+
+ void msg_hops_copy(msg_hops_obj * dest, const msg_hops_obj * src);
+
+ void msg_hops_zero(msg_hops_obj * obj);
+
+ unsigned int msg_hops_isZero(const msg_hops_obj * obj);
+
+ msg_hops_cfg * msg_hops_cfg_construct(void);
+
+ void msg_hops_cfg_destroy(msg_hops_cfg * msg_hops_config);
+
+ void msg_hops_cfg_printf(const msg_hops_cfg * msg_hops_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MESSAGE_POTS
+#define __ODAS_MESSAGE_POTS
+
+ /**
+ * \file msg_pots.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include "../signal/pot.h"
+
+ typedef struct msg_pots_obj {
+
+ unsigned long long timeStamp;
+ unsigned int fS;
+ pots_obj * pots;
+
+ } msg_pots_obj;
+
+ typedef struct msg_pots_cfg {
+
+ unsigned int nPots;
+ unsigned int fS;
+
+ } msg_pots_cfg;
+
+ msg_pots_obj * msg_pots_construct(const msg_pots_cfg * cfg);
+
+ void msg_pots_destroy(msg_pots_obj * obj);
+
+ void msg_pots_copy(msg_pots_obj * dest, const msg_pots_obj * src);
+
+ void msg_pots_zero(msg_pots_obj * obj);
+
+ unsigned int msg_pots_isZero(const msg_pots_obj * obj);
+
+ msg_pots_cfg * msg_pots_cfg_construct(void);
+
+ void msg_pots_cfg_destroy(msg_pots_cfg * cfg);
+
+ void msg_pots_cfg_printf(const msg_pots_cfg * msg_pots_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MESSAGE_POWERS
+#define __ODAS_MESSAGE_POWERS
+
+ /**
+ * \file msg_powers.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include "../signal/env.h"
+
+ typedef struct msg_powers_obj {
+
+ unsigned long long timeStamp;
+ unsigned int fS;
+ envs_obj * envs;
+
+ } msg_powers_obj;
+
+ typedef struct msg_powers_cfg {
+
+ unsigned int halfFrameSize;
+ unsigned int nChannels;
+ unsigned int fS;
+
+ } msg_powers_cfg;
+
+ msg_powers_obj * msg_powers_construct(const msg_powers_cfg * msg_powers_config);
+
+ void msg_powers_destroy(msg_powers_obj * obj);
+
+ void msg_powers_copy(msg_powers_obj * dest, const msg_powers_obj * src);
+
+ void msg_powers_zero(msg_powers_obj * obj);
+
+ unsigned int msg_powers_isZero(const msg_powers_obj * obj);
+
+ msg_powers_cfg * msg_powers_cfg_construct(void);
+
+ void msg_powers_cfg_destroy(msg_powers_cfg * msg_powers_config);
+
+ void msg_powers_cfg_printf(const msg_powers_cfg * msg_powers_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MESSAGE_SPECTRA
+#define __ODAS_MESSAGE_SPECTRA
+
+ /**
+ * \file msg_spectra.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include "../signal/freq.h"
+
+ typedef struct msg_spectra_obj {
+
+ unsigned long long timeStamp;
+ unsigned int fS;
+ freqs_obj * freqs;
+
+ } msg_spectra_obj;
+
+ typedef struct msg_spectra_cfg {
+
+ unsigned int halfFrameSize;
+ unsigned int nChannels;
+ unsigned int fS;
+
+ } msg_spectra_cfg;
+
+ msg_spectra_obj * msg_spectra_construct(const msg_spectra_cfg * msg_spectra_config);
+
+ void msg_spectra_destroy(msg_spectra_obj * obj);
+
+ void msg_spectra_copy(msg_spectra_obj * dest, const msg_spectra_obj * src);
+
+ void msg_spectra_zero(msg_spectra_obj * obj);
+
+ unsigned int msg_spectra_isZero(const msg_spectra_obj * obj);
+
+ msg_spectra_cfg * msg_spectra_cfg_construct(void);
+
+ void msg_spectra_cfg_destroy(msg_spectra_cfg * msg_spectra_config);
+
+ void msg_spectra_cfg_printf(const msg_spectra_cfg * msg_spectra_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MESSAGE_TARGETS
+#define __ODAS_MESSAGE_TARGETS
+
+ /**
+ * \file msg_targets.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include "../signal/target.h"
+
+ typedef struct msg_targets_obj {
+
+ unsigned long long timeStamp;
+ unsigned int fS;
+ targets_obj * targets;
+
+ } msg_targets_obj;
+
+ typedef struct msg_targets_cfg {
+
+ unsigned int nTargets;
+ unsigned int fS;
+
+ } msg_targets_cfg;
+
+ msg_targets_obj * msg_targets_construct(const msg_targets_cfg * cfg);
+
+ void msg_targets_destroy(msg_targets_obj * obj);
+
+ void msg_targets_copy(msg_targets_obj * dest, const msg_targets_obj * src);
+
+ void msg_targets_zero(msg_targets_obj * obj);
+
+ unsigned int msg_targets_isZero(const msg_targets_obj * obj);
+
+ msg_targets_cfg * msg_targets_cfg_construct(void);
+
+ void msg_targets_cfg_destroy(msg_targets_cfg * cfg);
+
+ void msg_targets_cfg_printf(const msg_targets_cfg * msg_targets_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MESSAGE_TRACKS
+#define __ODAS_MESSAGE_TRACKS
+
+ /**
+ * \file msg_tracks.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include "../signal/track.h"
+
+ typedef struct msg_tracks_obj {
+
+ unsigned long long timeStamp;
+ unsigned int fS;
+ tracks_obj * tracks;
+
+ } msg_tracks_obj;
+
+ typedef struct msg_tracks_cfg {
+
+ unsigned int nTracks;
+ unsigned int fS;
+
+ } msg_tracks_cfg;
+
+ msg_tracks_obj * msg_tracks_construct(const msg_tracks_cfg * cfg);
+
+ void msg_tracks_destroy(msg_tracks_obj * obj);
+
+ void msg_tracks_copy(msg_tracks_obj * dest, const msg_tracks_obj * src);
+
+ void msg_tracks_zero(msg_tracks_obj * obj);
+
+ unsigned int msg_tracks_isZero(const msg_tracks_obj * obj);
+
+ msg_tracks_cfg * msg_tracks_cfg_construct(void);
+
+ void msg_tracks_cfg_destroy(msg_tracks_cfg * cfg);
+
+ void msg_tracks_cfg_printf(const msg_tracks_cfg * msg_tracks_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MODULE_CLASSIFY
+#define __ODAS_MODULE_CLASSIFY
+
+ /**
+ * \file mod_classify.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ #include <message/msg_hops.h>
+ #include <message/msg_tracks.h>
+ #include <message/msg_categories.h>
+
+ #include <signal/acorr.h>
+ #include <signal/category.h>
+ #include <signal/frame.h>
+ #include <signal/freq.h>
+ #include <signal/hop.h>
+ #include <signal/pitch.h>
+
+ #include <system/acorr2pitch.h>
+ #include <system/frame2freq.h>
+ #include <system/freq2acorr.h>
+ #include <system/hop2frame.h>
+ #include <system/pitch2category.h>
+
+ typedef struct mod_classify_obj {
+
+ frames_obj * frames;
+ freqs_obj * freqs;
+ acorrs_obj * acorrs;
+ pitches_obj * pitches;
+
+ hop2frame_obj * hop2frame;
+ frame2freq_obj * frame2freq;
+ freq2acorr_obj * freq2acorr;
+ acorr2pitch_obj * acorr2pitch;
+ pitch2category_obj * pitch2category;
+
+ msg_hops_obj * in1;
+ msg_tracks_obj * in2;
+ msg_categories_obj * out;
+
+ } mod_classify_obj;
+
+ typedef struct mod_classify_cfg {
+
+ unsigned int frameSize;
+ unsigned int winSize;
+
+ float tauMin;
+ float tauMax;
+ float deltaTauMax;
+ float alpha;
+ float gamma;
+ float phiMin;
+ float r0;
+
+ } mod_classify_cfg;
+
+ mod_classify_obj * mod_classify_construct(const mod_classify_cfg * mod_classify_config, const msg_hops_cfg * msg_hops_config, const msg_tracks_cfg * msg_tracks_config, const msg_categories_cfg * msg_categories_config);
+
+ void mod_classify_destroy(mod_classify_obj * obj);
+
+ int mod_classify_process(mod_classify_obj * obj);
+
+ void mod_classify_connect(mod_classify_obj * obj, msg_hops_obj * in1, msg_tracks_obj * in2, msg_categories_obj * out);
+
+ void mod_classify_disconnect(mod_classify_obj * obj);
+
+ mod_classify_cfg * mod_classify_cfg_construct(void);
+
+ void mod_classify_cfg_destroy(mod_classify_cfg * cfg);
+
+ void mod_classify_cfg_printf(const mod_classify_cfg * cfg);
+
+#endif
--- /dev/null
+#ifndef __ODAS_MODULE_ISTFT
+#define __ODAS_MODULE_ISTFT
+
+ /**
+ * \file mod_istft.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../system/freq2frame.h"
+ #include "../signal/frame.h"
+ #include "../system/frame2hop.h"
+
+ #include "../message/msg_hops.h"
+ #include "../message/msg_spectra.h"
+
+ typedef struct mod_istft_obj {
+
+ freq2frame_obj * freq2frame;
+ frames_obj * frames;
+ frame2hop_obj * frame2hop;
+
+ msg_spectra_obj * in;
+ msg_hops_obj * out;
+
+ } mod_istft_obj;
+
+ typedef struct mod_istft_cfg {
+
+ } mod_istft_cfg;
+
+ mod_istft_obj * mod_istft_construct(const mod_istft_cfg * mod_istft_config, const msg_spectra_cfg * msg_spectra_config, const msg_hops_cfg * msg_hops_config);
+
+ void mod_istft_destroy(mod_istft_obj * obj);
+
+ int mod_istft_process(mod_istft_obj * obj);
+
+ void mod_istft_connect(mod_istft_obj * obj, msg_spectra_obj * in, msg_hops_obj * out);
+
+ void mod_istft_disconnect(mod_istft_obj * obj);
+
+ mod_istft_cfg * mod_istft_cfg_construct(void);
+
+ void mod_istft_cfg_destroy(mod_istft_cfg * cfg);
+
+ void mod_istft_cfg_printf(const mod_istft_cfg * cfg);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MODULE_MAPPING
+#define __ODAS_MODULE_MAPPING
+
+ /**
+ * \file mod_mapping.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../message/msg_hops.h"
+ #include "../message/msg_spectra.h"
+
+ #include "../general/link.h"
+ #include "../system/hop2hop.h"
+
+ typedef struct mod_mapping_obj {
+
+ hop2hop_multiplex_obj * hop2hop_multiplex;
+ links_obj * links;
+
+ msg_hops_obj * in;
+ msg_hops_obj * out;
+
+ } mod_mapping_obj;
+
+ typedef struct mod_mapping_cfg {
+
+ links_obj * links;
+
+ } mod_mapping_cfg;
+
+ mod_mapping_obj * mod_mapping_construct(const mod_mapping_cfg * mod_mapping_config, const msg_hops_cfg * msg_hops_config);
+
+ void mod_mapping_destroy(mod_mapping_obj * obj);
+
+ int mod_mapping_process(mod_mapping_obj * obj);
+
+ void mod_mapping_connect(mod_mapping_obj * obj, msg_hops_obj * in, msg_hops_obj * out);
+
+ void mod_mapping_disconnect(mod_mapping_obj * obj);
+
+ mod_mapping_cfg * mod_mapping_cfg_construct(void);
+
+ void mod_mapping_cfg_destroy(mod_mapping_cfg * cfg);
+
+ void mod_mapping_cfg_printf(const mod_mapping_cfg * cfg);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MODULE_NOISE
+#define __ODAS_MODULE_NOISE
+
+ /**
+ * \file mod_noise.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../system/freq2env.h"
+ #include "../system/env2env.h"
+ #include "../message/msg_spectra.h"
+ #include "../message/msg_powers.h"
+
+ typedef struct mod_noise_obj {
+
+ freq2env_obj * freq2env;
+ envs_obj * envs;
+ env2env_mcra_obj * env2env_mcra;
+
+ msg_spectra_obj * in;
+ msg_powers_obj * out;
+
+ } mod_noise_obj;
+
+ typedef struct mod_noise_cfg {
+
+ unsigned int bSize;
+ float alphaS;
+ unsigned int L;
+ float delta;
+ float alphaD;
+
+ } mod_noise_cfg;
+
+ mod_noise_obj * mod_noise_construct(const mod_noise_cfg * mod_noise_config, const msg_spectra_cfg * msg_spectra_config, const msg_powers_cfg * msg_powers_config);
+
+ void mod_noise_destroy(mod_noise_obj * obj);
+
+ int mod_noise_process(mod_noise_obj * obj);
+
+ void mod_noise_connect(mod_noise_obj * obj, msg_spectra_obj * in, msg_powers_obj * out);
+
+ void mod_noise_disconnect(mod_noise_obj * obj);
+
+ mod_noise_cfg * mod_noise_cfg_construct(void);
+
+ void mod_noise_cfg_destroy(mod_noise_cfg * cfg);
+
+ void mod_noise_cfg_printf(const mod_noise_cfg * cfg);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MODULE_RS
+#define __ODAS_MODULE_RS
+
+ /**
+ * \file mod_rs.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+
+ #include "../message/msg_hops.h"
+
+ #include "../signal/hop.h"
+ #include "../signal/frame.h"
+ #include "../signal/freq.h"
+
+ #include "../system/hop2frame.h"
+ #include "../system/hop2hop.h"
+ #include "../system/frame2freq.h"
+ #include "../system/freq2freq.h"
+ #include "../system/freq2frame.h"
+ #include "../system/frame2hop.h"
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <math.h>
+
+ typedef struct mod_resample_obj {
+
+ unsigned long long timeStamp;
+ char noMorePush;
+
+ char type;
+
+ unsigned int nChannels;
+ unsigned int fSin;
+ unsigned int fSout;
+ unsigned int hopSizeIn;
+ unsigned int hopSizeOut;
+ float ratio;
+
+ unsigned int frameSize;
+ unsigned int halfFrameSize;
+ unsigned int lowPassCut;
+
+ hop2hop_buffer_obj * hop2hop;
+
+ hop2frame_obj * hop2frame;
+ frames_obj * framesAnalysis;
+ frame2freq_obj * frame2freq;
+ freqs_obj * freqsAnalysis;
+ freq2freq_lowpass_obj * freq2freq_lowpass;
+ freqs_obj * freqsSynthesis;
+ freq2frame_obj * freq2frame;
+ frames_obj * framesSynthesis;
+ frame2hop_obj * frame2hop;
+ hops_obj * hops;
+
+ msg_hops_obj * in;
+ msg_hops_obj * out;
+
+ } mod_resample_obj;
+
+ typedef struct mod_resample_cfg {
+
+ unsigned int fSin;
+ unsigned int fSout;
+
+ } mod_resample_cfg;
+
+ mod_resample_obj * mod_resample_construct(const mod_resample_cfg * mod_resample_config, const msg_hops_cfg * msg_hops_in_config, const msg_hops_cfg * msg_hops_out_config);
+
+ void mod_resample_destroy(mod_resample_obj * obj);
+
+ int mod_resample_process_push(mod_resample_obj * obj);
+
+ int mod_resample_process_pop(mod_resample_obj * obj);
+
+ int mod_resample_process_push_down(mod_resample_obj * obj);
+
+ int mod_resample_process_push_up(mod_resample_obj * obj);
+
+ int mod_resample_process_push_same(mod_resample_obj * obj);
+
+ int mod_resample_process_pop_down(mod_resample_obj * obj);
+
+ int mod_resample_process_pop_up(mod_resample_obj * obj);
+
+ int mod_resample_process_pop_same(mod_resample_obj * obj);
+
+ void mod_resample_connect(mod_resample_obj * obj, msg_hops_obj * in, msg_hops_obj * out);
+
+ void mod_resample_disconnect(mod_resample_obj * obj);
+
+ mod_resample_cfg * mod_resample_cfg_construct(void);
+
+ void mod_resample_cfg_destroy(mod_resample_cfg * cfg);
+
+ void mod_resample_cfg_printf(const mod_resample_cfg * cfg);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MODULE_SSL
+#define __ODAS_MODULE_SSL
+
+ /**
+ * \file mod_ssl.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+
+ #include "../general/mic.h"
+ #include "../general/samplerate.h"
+ #include "../general/soundspeed.h"
+ #include "../general/spatialfilter.h"
+
+ #include "../signal/aimg.h"
+ #include "../signal/env.h"
+ #include "../signal/freq.h"
+ #include "../signal/xcorr.h"
+
+ #include "../system/env2env.h"
+ #include "../system/freq2env.h"
+ #include "../system/freq2freq.h"
+ #include "../system/freq2xcorr.h"
+ #include "../system/xcorr2aimg.h"
+ #include "../system/xcorr2xcorr.h"
+
+ #include "../init/scanning.h"
+
+ #include "../message/msg_spectra.h"
+ #include "../message/msg_powers.h"
+ #include "../message/msg_pots.h"
+
+
+ typedef struct mod_ssl_obj {
+
+ unsigned int nChannels;
+ unsigned int nPairs;
+ unsigned int nPots;
+ unsigned int nLevels;
+ unsigned int frameSize;
+ unsigned int halfFrameSize;
+ unsigned int frameSizeInterp;
+ unsigned int halfFrameSizeInterp;
+ unsigned int interpRate;
+
+ scans_obj * scans;
+
+ freqs_obj * phasors;
+ freqs_obj * products;
+ freqs_obj * productsInterp;
+ xcorrs_obj * xcorrs;
+ xcorrs_obj * xcorrsMax;
+
+ freq2env_obj * freq2env;
+ freq2freq_phasor_obj * freq2freq_phasor;
+ freq2freq_product_obj * freq2freq_product;
+ freq2freq_interpolate_obj * freq2freq_interpolate;
+ freq2xcorr_obj * freq2xcorr;
+ xcorr2xcorr_obj * xcorr2xcorr;
+
+ aimg_obj ** aimgs;
+ xcorr2aimg_obj ** xcorr2aimg;
+
+ pots_obj * pots;
+
+ msg_spectra_obj * in;
+ msg_pots_obj * out;
+
+ } mod_ssl_obj;
+
+ typedef struct mod_ssl_cfg {
+
+ mics_obj * mics;
+ samplerate_obj * samplerate;
+ soundspeed_obj * soundspeed;
+ spatialfilter_obj * spatialfilter;
+
+ unsigned int interpRate;
+ float epsilon;
+ unsigned int nLevels;
+ unsigned int * levels;
+ signed int * deltas;
+ unsigned int nMatches;
+ float probMin;
+ unsigned int nRefinedLevels;
+ unsigned int nThetas;
+ float gainMin;
+
+ } mod_ssl_cfg;
+
+ mod_ssl_obj * mod_ssl_construct(const mod_ssl_cfg * mod_ssl_config, const msg_spectra_cfg * msg_spectra_config, const msg_pots_cfg * msg_pots_config);
+
+ void mod_ssl_destroy(mod_ssl_obj * obj);
+
+ int mod_ssl_process(mod_ssl_obj * obj);
+
+ void mod_ssl_connect(mod_ssl_obj * obj, msg_spectra_obj * in, msg_pots_obj * out);
+
+ void mod_ssl_disconnect(mod_ssl_obj * obj);
+
+ mod_ssl_cfg * mod_ssl_cfg_construct(void);
+
+ void mod_ssl_cfg_destroy(mod_ssl_cfg * cfg);
+
+ void mod_ssl_cfg_printf(const mod_ssl_cfg * cfg);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MODULE_SSS
+#define __ODAS_MODULE_SSS
+
+ /**
+ * \file mod_sss.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../general/mic.h"
+ #include "../general/samplerate.h"
+ #include "../general/soundspeed.h"
+ #include "../general/spatialfilter.h"
+
+ #include "../init/directivity.h"
+
+ #include "../message/msg_powers.h"
+ #include "../message/msg_spectra.h"
+ #include "../message/msg_tracks.h"
+
+ #include "../signal/beampattern.h"
+ #include "../signal/steer.h"
+ #include "../signal/gain.h"
+ #include "../signal/demixing.h"
+ #include "../signal/env.h"
+
+ #include "../system/demixing2env.h"
+ #include "../system/demixing2freq.h"
+ #include "../system/env2env.h"
+ #include "../system/freq2env.h"
+ #include "../system/freq2freq.h"
+ #include "../system/gain2mask.h"
+ #include "../system/track2steer.h"
+ #include "../system/track2gain.h"
+ #include "../system/steer2demixing.h"
+
+ #include <stdlib.h>
+ #include <string.h>
+
+ typedef struct mod_sss_obj {
+
+ unsigned int nSeps;
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+
+ char mode_sep;
+ char mode_pf;
+
+ beampatterns_obj * sep_ds_beampatterns_mics;
+ beampatterns_obj * sep_ds_beampatterns_spatialfilter;
+ steers_obj * sep_ds_steers;
+ gains_obj * sep_ds_gains;
+ masks_obj * sep_ds_masks;
+ tracks_obj * sep_ds_tracksPrev;
+ tracks_obj * sep_ds_tracksNow;
+ track2gain_obj * sep_ds_track2gain;
+ gain2mask_obj * sep_ds_gain2mask;
+ track2steer_obj * sep_ds_track2steer;
+ steer2demixing_ds_obj * sep_ds_steer2demixing;
+ demixings_obj * sep_ds_demixingsPrev;
+ demixings_obj * sep_ds_demixingsNow;
+ demixing2freq_obj * sep_ds_demixing2freq;
+
+ beampatterns_obj * sep_gss_beampatterns_mics;
+ beampatterns_obj * sep_gss_beampatterns_spatialfilter;
+ steers_obj * sep_gss_steers;
+ gains_obj * sep_gss_gains;
+ masks_obj * sep_gss_masks;
+ tracks_obj * sep_gss_tracksPrev;
+ tracks_obj * sep_gss_tracksNow;
+ track2gain_obj * sep_gss_track2gain;
+ gain2mask_obj * sep_gss_gain2mask;
+ track2steer_obj * sep_gss_track2steer;
+ steer2demixing_gss_obj * sep_gss_steer2demixing;
+ demixings_obj * sep_gss_demixingsPrev;
+ demixings_obj * sep_gss_demixingsNow;
+ demixing2freq_obj * sep_gss_demixing2freq;
+
+ masks_obj * sep_masks;
+ demixings_obj * sep_demixings;
+
+ freq2env_obj * pf_ms_freq2env;
+ envs_obj * pf_ms_noisys;
+ demixing2env_obj * pf_ms_demixing2env;
+ envs_obj * pf_ms_noisesEst;
+ env2env_mcra_obj * pf_ms_env2env_mcra;
+ envs_obj * pf_ms_noisesSep;
+ env2env_interf_obj * pf_ms_env2env_interf;
+ envs_obj * pf_ms_interfs;
+ env2env_gainspeech_obj * pf_ms_env2env_gainspeech;
+ envs_obj * pf_ms_gainspeeches;
+ envs_obj * pf_ms_snrs;
+ envs_obj * pf_ms_vs;
+ env2env_probspeech_obj * pf_ms_env2env_probspeech;
+ envs_obj * pf_ms_probspeeches;
+ env2env_gainall_obj * pf_ms_env2env_gainall;
+ envs_obj * pf_ms_gainalls;
+ freq2freq_gain_obj * pf_ms_freq2freq_gain;
+
+ freq2env_obj * pf_ss_freq2env_channels;
+ envs_obj * pf_ss_env_channels;
+ demixing2env_obj * pf_ss_demixing2env;
+ envs_obj * pf_ss_env_channelseps;
+ freq2env_obj * pf_ss_freq2env_seps;
+ envs_obj * pf_ss_env_seps;
+ env2env_gainratio_obj * pf_ss_env2env_gainratio;
+ envs_obj * pf_ss_gainratio;
+ freq2freq_gain_obj * pf_ss_freq2freq_gain;
+
+ msg_spectra_obj * in1;
+ msg_powers_obj * in2;
+ msg_tracks_obj * in3;
+ msg_spectra_obj * out1;
+ msg_spectra_obj * out2;
+
+ FILE * tmpFp;
+
+ } mod_sss_obj;
+
+ typedef struct mod_sss_cfg {
+
+ char mode_sep;
+ char mode_pf;
+
+ unsigned int nThetas;
+ float gainMin;
+
+ float epsilon;
+
+ mics_obj * mics;
+ samplerate_obj * samplerate;
+ soundspeed_obj * soundspeed;
+ spatialfilter_obj * spatialfilter;
+
+ float sep_gss_lambda;
+ float sep_gss_mu;
+
+ unsigned int pf_ms_bSize;
+ float pf_ms_alphaS;
+ unsigned int pf_ms_L;
+ float pf_ms_delta;
+ float pf_ms_alphaD;
+
+ float pf_ms_eta;
+ float pf_ms_alphaZ;
+ float pf_ms_alphaPmin;
+ float pf_ms_thetaWin;
+ float pf_ms_alphaWin;
+ float pf_ms_maxAbsenceProb;
+ float pf_ms_Gmin;
+ unsigned int pf_ms_winSizeLocal;
+ unsigned int pf_ms_winSizeGlobal;
+ unsigned int pf_ms_winSizeFrame;
+
+ float pf_ss_Gmin;
+ float pf_ss_Gmid;
+ float pf_ss_Gslope;
+
+ } mod_sss_cfg;
+
+ mod_sss_obj * mod_sss_construct(const mod_sss_cfg * mod_sss_config, const msg_tracks_cfg * msg_tracks_config, const msg_spectra_cfg * msg_spectra_config);
+
+ void mod_sss_destroy(mod_sss_obj * obj);
+
+ int mod_sss_process(mod_sss_obj * obj);
+
+ int mod_sss_process_dds(mod_sss_obj * obj);
+
+ int mod_sss_process_dgss(mod_sss_obj * obj);
+
+ int mod_sss_process_sspf(mod_sss_obj * obj);
+
+ int mod_sss_process_mspf(mod_sss_obj * obj);
+
+ void mod_sss_connect(mod_sss_obj * obj, msg_spectra_obj * in1, msg_powers_obj * in2, msg_tracks_obj * in3, msg_spectra_obj * out1, msg_spectra_obj * out2);
+
+ void mod_sss_disconnect(mod_sss_obj * obj);
+
+ mod_sss_cfg * mod_sss_cfg_construct(void);
+
+ void mod_sss_cfg_destroy(mod_sss_cfg * cfg);
+
+ void mod_sss_cfg_printf(const mod_sss_cfg * cfg);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MODULE_SST
+#define __ODAS_MODULE_SST
+
+ /**
+ * \file mod_sst.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <math.h>
+
+ #include "../general/mic.h"
+
+ #include "../signal/coherence.h"
+ #include "../signal/kalman.h"
+ #include "../signal/mixture.h"
+ #include "../signal/particle.h"
+
+ #include "../system/kalman2kalman.h"
+ #include "../system/particle2particle.h"
+ #include "../system/kalman2coherence.h"
+ #include "../system/particle2coherence.h"
+ #include "../system/mixture2mixture.h"
+
+ #include "../message/msg_pots.h"
+ #include "../message/msg_targets.h"
+ #include "../message/msg_tracks.h"
+ #include "../module/mod_ssl.h"
+
+ typedef struct mod_sst_obj {
+
+ unsigned int nPots;
+ unsigned int nTracksMax;
+ unsigned int nTracks;
+ unsigned int nTargetsMax;
+
+ char mode;
+ char add;
+
+ mixture_obj ** mixtures;
+ coherences_obj ** coherences;
+ postprobs_obj ** postprobs;
+
+ unsigned long long * ids;
+ unsigned long long * idsAdded;
+ unsigned long long * idsRemoved;
+ char ** tags;
+
+ char * type;
+
+ kalman_obj ** kalmans;
+ kalman2kalman_obj * kalman2kalman_prob;
+ kalman2kalman_obj * kalman2kalman_active;
+ kalman2kalman_obj * kalman2kalman_target;
+ kalman2coherence_obj * kalman2coherence_prob;
+ kalman2coherence_obj * kalman2coherence_active;
+ kalman2coherence_obj * kalman2coherence_target;
+
+ particles_obj ** particles;
+ particle2particle_obj * particle2particle_prob;
+ particle2particle_obj * particle2particle_active;
+ particle2particle_obj * particle2particle_target;
+ particle2coherence_obj * particle2coherence_prob;
+ particle2coherence_obj * particle2coherence_active;
+ particle2coherence_obj * particle2coherence_target;
+
+ mixture2mixture_obj * mixture2mixture;
+
+ float * sourceActivities;
+
+ float theta_new;
+ unsigned int N_prob;
+ float theta_prob;
+ unsigned int * N_inactive;
+ float theta_inactive;
+
+ unsigned int * n_prob;
+ float * mean_prob;
+ unsigned int * n_inactive;
+
+ unsigned long long id;
+
+ msg_pots_obj * in1;
+ msg_targets_obj * in2;
+ msg_tracks_obj * out;
+
+ } mod_sst_obj;
+
+ typedef struct mod_sst_cfg {
+
+ char mode;
+ char add;
+
+ unsigned int nTracksMax;
+ unsigned int hopSize;
+
+ float sigmaQ;
+
+ unsigned int nParticles;
+ float st_alpha;
+ float st_beta;
+ float st_ratio;
+ float ve_alpha;
+ float ve_beta;
+ float ve_ratio;
+ float ac_alpha;
+ float ac_beta;
+ float ac_ratio;
+ float Nmin;
+
+ float epsilon;
+ float sigmaR_active;
+ float sigmaR_prob;
+ float sigmaR_target;
+ gaussians_1d_obj * active_gmm;
+ gaussians_1d_obj * inactive_gmm;
+ float Pfalse;
+ float Pnew;
+ float Ptrack;
+
+ float theta_new;
+ unsigned int N_prob;
+ float theta_prob;
+ unsigned int * N_inactive;
+ float theta_inactive;
+
+ } mod_sst_cfg;
+
+ mod_sst_obj * mod_sst_construct(const mod_sst_cfg * mod_sst_config, const mod_ssl_cfg * mod_ssl_config, const msg_pots_cfg * msg_pots_config, const msg_targets_cfg * msg_targets_config, const msg_tracks_cfg * msg_tracks_config);
+
+ void mod_sst_destroy(mod_sst_obj * obj);
+
+ int mod_sst_process(mod_sst_obj * obj);
+
+ void mod_sst_connect(mod_sst_obj * obj, msg_pots_obj * in1, msg_targets_obj * in2, msg_tracks_obj * out);
+
+ void mod_sst_disconnect(mod_sst_obj * obj);
+
+ mod_sst_cfg * mod_sst_cfg_construct(void);
+
+ void mod_sst_cfg_destroy(mod_sst_cfg * cfg);
+
+ void mod_sst_cfg_printf(const mod_sst_cfg * cfg);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MODULE_STFT
+#define __ODAS_MODULE_STFT
+
+ /**
+ * \file mod_stft.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../system/hop2frame.h"
+ #include "../signal/frame.h"
+ #include "../system/frame2freq.h"
+ #include "../message/msg_hops.h"
+ #include "../message/msg_spectra.h"
+
+ typedef struct mod_stft_obj {
+
+ hop2frame_obj * hop2frame;
+ frames_obj * frames;
+ frame2freq_obj * frame2freq;
+
+ msg_hops_obj * in;
+ msg_spectra_obj * out;
+
+ } mod_stft_obj;
+
+ typedef struct mod_stft_cfg {
+
+ } mod_stft_cfg;
+
+ mod_stft_obj * mod_stft_construct(const mod_stft_cfg * mod_stft_config, const msg_hops_cfg * msg_hops_config, const msg_spectra_cfg * msg_spectra_config);
+
+ void mod_stft_destroy(mod_stft_obj * obj);
+
+ int mod_stft_process(mod_stft_obj * obj);
+
+ void mod_stft_connect(mod_stft_obj * obj, msg_hops_obj * in, msg_spectra_obj * out);
+
+ void mod_stft_disconnect(mod_stft_obj * obj);
+
+ mod_stft_cfg * mod_stft_cfg_construct(void);
+
+ void mod_stft_cfg_destroy(mod_stft_cfg * cfg);
+
+ void mod_stft_cfg_printf(const mod_stft_cfg * cfg);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_MODULE_VOLUME
+#define __ODAS_MODULE_VOLUME
+
+ /**
+ * \file mod_volume.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "../system/hop2hop.h"
+ #include "../message/msg_hops.h"
+
+ typedef struct mod_volume_obj {
+
+ hop2hop_gain_obj * hop2hop_gain;
+
+ msg_hops_obj * in;
+ msg_hops_obj * out;
+
+ } mod_volume_obj;
+
+ typedef struct mod_volume_cfg {
+
+ float gain;
+
+ } mod_volume_cfg;
+
+ mod_volume_obj * mod_volume_construct(const mod_volume_cfg * mod_volume_config, const msg_hops_cfg * msg_hops_config);
+
+ void mod_volume_destroy(mod_volume_obj * obj);
+
+ int mod_volume_process(mod_volume_obj * obj);
+
+ void mod_volume_connect(mod_volume_obj * obj, msg_hops_obj * in, msg_hops_obj * out);
+
+ void mod_volume_disconnect(mod_volume_obj * obj);
+
+ mod_volume_cfg * mod_volume_cfg_construct(void);
+
+ void mod_volume_cfg_destroy(mod_volume_cfg * cfg);
+
+ void mod_volume_cfg_printf(const mod_volume_cfg * cfg);
+
+#endif
\ No newline at end of file
- #include "../../src/connector/con_categories.h"
- #include "../../src/connector/con_hops.h"
- #include "../../src/connector/con_pots.h"
- #include "../../src/connector/con_powers.h"
- #include "../../src/connector/con_spectra.h"
- #include "../../src/connector/con_targets.h"
- #include "../../src/connector/con_tracks.h"
- #include "../../src/injector/inj_targets.h"
- #include "../../src/message/msg_categories.h"
- #include "../../src/message/msg_hops.h"
- #include "../../src/message/msg_pots.h"
- #include "../../src/message/msg_powers.h"
- #include "../../src/message/msg_spectra.h"
- #include "../../src/message/msg_targets.h"
- #include "../../src/message/msg_tracks.h"
- #include "../../src/module/mod_classify.h"
- #include "../../src/module/mod_istft.h"
- #include "../../src/module/mod_mapping.h"
- #include "../../src/module/mod_noise.h"
- #include "../../src/module/mod_resample.h"
- #include "../../src/module/mod_ssl.h"
- #include "../../src/module/mod_sst.h"
- #include "../../src/module/mod_sss.h"
- #include "../../src/module/mod_stft.h"
- #include "../../src/module/mod_volume.h"
- #include "../../src/sink/snk_categories.h"
- #include "../../src/sink/snk_hops.h"
- #include "../../src/sink/snk_pots.h"
- #include "../../src/sink/snk_powers.h"
- #include "../../src/sink/snk_spectra.h"
- #include "../../src/sink/snk_tracks.h"
- #include "../../src/source/src_hops.h"
- #include "../../src/aconnector/acon_categories.h"
- #include "../../src/aconnector/acon_hops.h"
- #include "../../src/aconnector/acon_pots.h"
- #include "../../src/aconnector/acon_powers.h"
- #include "../../src/aconnector/acon_spectra.h"
- #include "../../src/aconnector/acon_targets.h"
- #include "../../src/aconnector/acon_tracks.h"
- #include "../../src/ainjector/ainj_targets.h"
- #include "../../src/amessage/amsg_categories.h"
- #include "../../src/amessage/amsg_hops.h"
- #include "../../src/amessage/amsg_pots.h"
- #include "../../src/amessage/amsg_powers.h"
- #include "../../src/amessage/amsg_spectra.h"
- #include "../../src/amessage/amsg_targets.h"
- #include "../../src/amessage/amsg_tracks.h"
- #include "../../src/amodule/amod_classify.h"
- #include "../../src/amodule/amod_istft.h"
- #include "../../src/amodule/amod_mapping.h"
- #include "../../src/amodule/amod_noise.h"
- #include "../../src/amodule/amod_resample.h"
- #include "../../src/amodule/amod_ssl.h"
- #include "../../src/amodule/amod_sst.h"
- #include "../../src/amodule/amod_sss.h"
- #include "../../src/amodule/amod_stft.h"
- #include "../../src/amodule/amod_volume.h"
- #include "../../src/asink/asnk_categories.h"
- #include "../../src/asink/asnk_hops.h"
- #include "../../src/asink/asnk_pots.h"
- #include "../../src/asink/asnk_powers.h"
- #include "../../src/asink/asnk_spectra.h"
- #include "../../src/asink/asnk_tracks.h"
- #include "../../src/asource/asrc_hops.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ #include <connector/con_categories.h>
+ #include <connector/con_hops.h>
+ #include <connector/con_pots.h>
+ #include <connector/con_powers.h>
+ #include <connector/con_spectra.h>
+ #include <connector/con_targets.h>
+ #include <connector/con_tracks.h>
+ #include <injector/inj_targets.h>
+ #include <message/msg_categories.h>
+ #include <message/msg_hops.h>
+ #include <message/msg_pots.h>
+ #include <message/msg_powers.h>
+ #include <message/msg_spectra.h>
+ #include <message/msg_targets.h>
+ #include <message/msg_tracks.h>
+ #include <module/mod_classify.h>
+ #include <module/mod_istft.h>
+ #include <module/mod_mapping.h>
+ #include <module/mod_noise.h>
+ #include <module/mod_resample.h>
+ #include <module/mod_ssl.h>
+ #include <module/mod_sst.h>
+ #include <module/mod_sss.h>
+ #include <module/mod_stft.h>
+ #include <module/mod_volume.h>
+ #include <sink/snk_categories.h>
+ #include <sink/snk_hops.h>
+ #include <sink/snk_pots.h>
+ #include <sink/snk_powers.h>
+ #include <sink/snk_spectra.h>
+ #include <sink/snk_tracks.h>
+ #include <source/src_hops.h>
+ #include <aconnector/acon_categories.h>
+ #include <aconnector/acon_hops.h>
+ #include <aconnector/acon_pots.h>
+ #include <aconnector/acon_powers.h>
+ #include <aconnector/acon_spectra.h>
+ #include <aconnector/acon_targets.h>
+ #include <aconnector/acon_tracks.h>
+ #include <ainjector/ainj_targets.h>
+ #include <amessage/amsg_categories.h>
+ #include <amessage/amsg_hops.h>
+ #include <amessage/amsg_pots.h>
+ #include <amessage/amsg_powers.h>
+ #include <amessage/amsg_spectra.h>
+ #include <amessage/amsg_targets.h>
+ #include <amessage/amsg_tracks.h>
+ #include <amodule/amod_classify.h>
+ #include <amodule/amod_istft.h>
+ #include <amodule/amod_mapping.h>
+ #include <amodule/amod_noise.h>
+ #include <amodule/amod_resample.h>
+ #include <amodule/amod_ssl.h>
+ #include <amodule/amod_sst.h>
+ #include <amodule/amod_sss.h>
+ #include <amodule/amod_stft.h>
+ #include <amodule/amod_volume.h>
+ #include <asink/asnk_categories.h>
+ #include <asink/asnk_hops.h>
+ #include <asink/asnk_pots.h>
+ #include <asink/asnk_powers.h>
+ #include <asink/asnk_spectra.h>
+ #include <asink/asnk_tracks.h>
+ #include <asource/asrc_hops.h>
+
+#ifdef __cplusplus
+} //extern "C"
+#endif
+
--- /dev/null
+#ifndef __ODAS_SIGNAL_ACORR
+#define __ODAS_SIGNAL_ACORR
+
+ /**
+ * \file acorr.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct acorrs_obj {
+
+ unsigned int nSignals;
+ unsigned int halfFrameSize;
+ float ** array;
+
+ } acorrs_obj;
+
+ acorrs_obj * acorrs_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize);
+
+ void acorrs_destroy(acorrs_obj * obj);
+
+ void acorrs_copy(acorrs_obj * dest, const acorrs_obj * src);
+
+ void acorrs_zero(acorrs_obj * obj);
+
+ void acorrs_printf(const acorrs_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_AIMG
+#define __ODAS_SIGNAL_AIMG
+
+ /**
+ * \file aimg.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct aimg_obj {
+
+ unsigned int aimgSize;
+ float * array;
+
+ } aimg_obj;
+
+ aimg_obj * aimg_construct_zero(const unsigned int aimgSize);
+
+ void aimg_destroy(aimg_obj * obj);
+
+ void aimg_printf(const aimg_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_AREA
+#define __ODAS_SIGNAL_AREA
+
+ /**
+ * \file area.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct areas_obj {
+
+ unsigned int nPointsDiscrete;
+ unsigned int nResolutionsPerDiscrete;
+ unsigned int nPairs;
+
+ float * array;
+
+ } areas_obj;
+
+ typedef struct area_obj {
+
+ unsigned int nPairs;
+
+ float * array;
+
+ } area_obj;
+
+ areas_obj * areas_construct_zero(const unsigned int nPointsDiscrete, const unsigned int nResolutionsPerDiscrete, const unsigned int nPairs);
+
+ void areas_destroy(areas_obj * obj);
+
+ void areas_printf(const areas_obj * obj);
+
+ area_obj * area_construct_zero(const unsigned int nPairs);
+
+ void area_destroy(area_obj * obj);
+
+ void area_printf(const area_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_ASSIGNATION
+#define __ODAS_SIGNAL_ASSIGNATION
+
+ /**
+ * \file assignation.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct assignations_obj {
+
+ unsigned int nAssignations;
+ unsigned int nPots;
+ signed int * array;
+
+ } assignations_obj;
+
+ assignations_obj * assignations_construct_zero(const unsigned int nAssignations, const unsigned int nPots);
+
+ void assignations_destroy(assignations_obj * obj);
+
+ void assignations_printf(const assignations_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_BEAMPATTERN
+#define __ODAS_SIGNAL_BEAMPATTERN
+
+ /**
+ * \file beampattern.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+
+ typedef struct beampatterns_obj {
+
+ unsigned int nChannels;
+ unsigned int nThetas;
+
+ float * minThetas;
+ float * maxThetas;
+ float * deltaThetas;
+
+ float * gains;
+
+ } beampatterns_obj;
+
+ beampatterns_obj * beampatterns_construct_zero(const unsigned int nChannels, const unsigned int nThetas);
+
+ void beampatterns_destroy(beampatterns_obj * obj);
+
+ void beampatterns_printf(const beampatterns_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_CATEGORY
+#define __ODAS_SIGNAL_CATEGORY
+
+ /**
+ * \file category.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct categories_obj {
+
+ unsigned int nSignals;
+ char * array;
+
+ } categories_obj;
+
+ categories_obj * categories_construct_zero(const unsigned int nSignals);
+
+ void categories_destroy(categories_obj * obj);
+
+ void categories_copy(categories_obj * dest, const categories_obj * src);
+
+ void categories_zero(categories_obj * obj);
+
+ void categories_printf(const categories_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_COHERENCE
+#define __ODAS_SIGNAL_COHERENCE
+
+ /**
+ * \file coherence.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct coherences_obj {
+
+ unsigned int nTracks;
+ unsigned int nPots;
+ float * array;
+
+ } coherences_obj;
+
+ coherences_obj * coherences_construct_zero(const unsigned int nTracks, const unsigned int nPots);
+
+ void coherences_destroy(coherences_obj * obj);
+
+ void coherences_printf(coherences_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_DELTA
+#define __ODAS_SIGNAL_DELTA
+
+ /**
+ * \file delta.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+
+ typedef struct deltas_obj {
+
+ unsigned int nPairs;
+ unsigned int * array;
+
+ } deltas_obj;
+
+ deltas_obj * deltas_construct_zero(const unsigned int nPairs);
+
+ deltas_obj * deltas_clone(const deltas_obj * obj);
+
+ void deltas_destroy(deltas_obj * obj);
+
+ void deltas_printf(const deltas_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_DEMIXING
+#define __ODAS_SIGNAL_DEMIXING
+
+ /**
+ * \file demixing.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct demixings_obj {
+
+ unsigned int nSeps;
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+
+ float ** array;
+
+ } demixings_obj;
+
+ demixings_obj * demixings_construct_zero(const unsigned int halfFrameSize, const unsigned int nSeps, const unsigned int nChannels);
+
+ void demixings_destroy(demixings_obj * obj);
+
+ void demixings_copy(demixings_obj * dest, const demixings_obj * src);
+
+ void demixings_zero(demixings_obj * obj);
+
+ void demixings_printf(const demixings_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_ENV
+#define __ODAS_SIGNAL_ENV
+
+ /**
+ * \file env.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct envs_obj {
+
+ unsigned int nSignals;
+ unsigned int halfFrameSize;
+ float ** array;
+
+ } envs_obj;
+
+ envs_obj * envs_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize);
+
+ envs_obj * envs_clone(const envs_obj * obj);
+
+ void envs_copy(envs_obj * dest, const envs_obj * src);
+
+ void envs_zero(envs_obj * obj);
+
+ void envs_destroy(envs_obj * obj);
+
+ void envs_printf(const envs_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_FRAME
+#define __ODAS_SIGNAL_FRAME
+
+ /**
+ * \file frame.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct frames_obj {
+
+ unsigned int nSignals;
+ unsigned int frameSize;
+ float ** array;
+
+ } frames_obj;
+
+ frames_obj * frames_construct_zero(const unsigned int nSignals, const unsigned int frameSize);
+
+ frames_obj * frames_clone(const frames_obj * obj);
+
+ void frames_destroy(frames_obj * obj);
+
+ void frames_printf(const frames_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_FREQ
+#define __ODAS_SIGNAL_FREQ
+
+ /**
+ * \file freq.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct freqs_obj {
+
+ unsigned int nSignals;
+ unsigned int halfFrameSize;
+ float ** array;
+
+ } freqs_obj;
+
+ freqs_obj * freqs_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize);
+
+ freqs_obj * freqs_clone(const freqs_obj * obj);
+
+ void freqs_copy(freqs_obj * dest, const freqs_obj * src);
+
+ void freqs_zero(freqs_obj * obj);
+
+ void freqs_destroy(freqs_obj * obj);
+
+ void freqs_printf(const freqs_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_GAIN
+#define __ODAS_SIGNAL_GAIN
+
+ /**
+ * \file gain.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+
+ typedef struct gains_obj {
+
+ unsigned int nSeps;
+ unsigned int nChannels;
+ float * array;
+
+ } gains_obj;
+
+ gains_obj * gains_construct_zero(const unsigned int nSeps, const unsigned int nChannels);
+
+ void gains_destroy(gains_obj * obj);
+
+ void gains_printf(const gains_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_HOP
+#define __ODAS_SIGNAL_HOP
+
+ /**
+ * \file hop.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct hops_obj {
+
+ unsigned int nSignals;
+ unsigned int hopSize;
+ float ** array;
+
+ } hops_obj;
+
+ hops_obj * hops_construct_zero(const unsigned int nSignals, const unsigned int hopSize);
+
+ hops_obj * hops_clone(const hops_obj * obj);
+
+ void hops_copy(hops_obj * dest, const hops_obj * src);
+
+ void hops_zero(hops_obj * obj);
+
+ void hops_destroy(hops_obj * obj);
+
+ void hops_printf(const hops_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_IMPULSE
+#define __ODAS_SIGNAL_IMPULSE
+
+ /**
+ * \file impulse.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+
+ typedef struct impulse_obj {
+
+ float * array;
+ unsigned int nCoefficients;
+
+ } impulse_obj;
+
+ impulse_obj * impulse_construct(const unsigned int nCoefficients);
+
+ void impulse_destroy(impulse_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_INDEX
+#define __ODAS_SIGNAL_INDEX
+
+ /**
+ * \file index.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct indexes_obj {
+
+ unsigned int nCoarses;
+ unsigned int nFines;
+ unsigned int * array;
+ unsigned int * count;
+
+ } indexes_obj;
+
+ indexes_obj * indexes_construct_zero(const unsigned int nCoarses, const unsigned int nFines);
+
+ void indexes_destroy(indexes_obj * obj);
+
+ void indexes_printf(const indexes_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_KALMAN
+#define __ODAS_SIGNAL_KALMAN
+
+ /**
+ * \file kalman.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+
+ #include "../utils/matrix.h"
+
+ typedef struct kalman_obj {
+
+ matrix_obj * x_lm1lm1;
+ matrix_obj * x_llm1;
+ matrix_obj * P_lm1lm1;
+ matrix_obj * P_llm1;
+
+ } kalman_obj;
+
+ kalman_obj * kalman_construct_zero(void);
+
+ void kalman_destroy(kalman_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_MAP
+#define __ODAS_SIGNAL_MAP
+
+ /**
+ * \file map.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct maps_obj {
+
+ unsigned int nCoarses;
+ unsigned int nFines;
+ char * array;
+
+ } maps_obj;
+
+ maps_obj * maps_construct_zero(const unsigned int nCoarses, const unsigned int nFines);
+
+ void maps_destroy(maps_obj * obj);
+
+ void maps_printf(const maps_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_MASK
+#define __ODAS_SIGNAL_MASK
+
+ /**
+ * \file mask.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+
+ typedef struct masks_obj {
+
+ unsigned int nSeps;
+ unsigned int nChannels;
+ char * array;
+
+ } masks_obj;
+
+ masks_obj * masks_construct_zero(const unsigned int nSeps, const unsigned int nChannels);
+
+ void masks_destroy(masks_obj * obj);
+
+ void masks_copy(masks_obj * dest, const masks_obj * src);
+
+ void masks_printf(const masks_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_MIXTURE
+#define __ODAS_SIGNAL_MIXTURE
+
+ /**
+ * \file mixture.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ #include "../signal/assignation.h"
+ #include "../init/combining.h"
+
+ typedef struct mixture_obj {
+
+ unsigned int nPots;
+ unsigned int nTracks;
+ unsigned int nTracksNewFalse;
+ unsigned int nCombinations;
+
+ assignations_obj * assignations;
+
+ float * p_Ez_AICD;
+ float * p_Eszs_phics;
+ float * p_phics;
+ float * p_Ez_phic;
+ float * p_phic;
+ float * p_phic_Ez;
+
+ } mixture_obj;
+
+ mixture_obj * mixture_construct_zero(const unsigned int nPots, const unsigned int nTracks);
+
+ void mixture_destroy(mixture_obj * obj);
+
+ void mixture_printf(const mixture_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_PAIR
+#define __ODAS_SIGNAL_PAIR
+
+ /**
+ * \file pair.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct pairs_obj {
+
+ unsigned int nPairs;
+ char * array;
+
+ } pairs_obj;
+
+ pairs_obj * pairs_construct_zero(const unsigned int nPairs);
+
+ pairs_obj * pairs_clone(const pairs_obj * obj);
+
+ void pairs_destroy(pairs_obj * obj);
+
+ void pairs_printf(const pairs_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_PARTICLE
+#define __ODAS_SIGNAL_PARTICLE
+
+ /**
+ * \file particle.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct particles_obj {
+
+ unsigned int nParticles;
+ float * array;
+ unsigned char * state;
+
+ } particles_obj;
+
+ particles_obj * particles_construct_zero(const unsigned int nParticles);
+
+ void particles_destroy(particles_obj * obj);
+
+ void particles_printf(const particles_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_PITCH
+#define __ODAS_SIGNAL_PITCH
+
+ /**
+ * \file pitch.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct pitches_obj {
+
+ unsigned int nSignals;
+ float * array;
+
+ } pitches_obj;
+
+ pitches_obj * pitches_construct_zero(const unsigned int nSignals);
+
+ void pitches_destroy(pitches_obj * obj);
+
+ void pitches_copy(pitches_obj * dest, const pitches_obj * src);
+
+ void pitches_zero(pitches_obj * obj);
+
+ void pitches_printf(const pitches_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_POINT
+#define __ODAS_SIGNAL_POINT
+
+ /**
+ * \file point.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct points_obj {
+
+ unsigned int nPoints;
+ float * array;
+
+ } points_obj;
+
+ points_obj * points_construct_zero(const unsigned int nPoints);
+
+ points_obj * points_clone(const points_obj * obj);
+
+ void points_destroy(points_obj * obj);
+
+ void points_printf(const points_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_POSTPROB
+#define __ODAS_SIGNAL_POSTPROB
+
+ /**
+ * \file postprob.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct postprobs_obj {
+
+ unsigned int nTracks;
+ unsigned int nPots;
+
+ float * arrayNew;
+ float * arrayTrack;
+ float * arrayTrackTotal;
+
+ } postprobs_obj;
+
+ postprobs_obj * postprobs_construct_zero(const unsigned int nPots, const unsigned int nTracks);
+
+ void postprobs_destroy(postprobs_obj * obj);
+
+ void postprobs_printf(const postprobs_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_POT
+#define __ODAS_SIGNAL_POT
+
+ /**
+ * \file pot.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct pots_obj {
+
+ unsigned int nPots;
+ float * array;
+
+ } pots_obj;
+
+ pots_obj * pots_construct_zero(const unsigned int nPots);
+
+ pots_obj * pots_clone(const pots_obj * obj);
+
+ void pots_copy(pots_obj * dest, const pots_obj * src);
+
+ void pots_zero(pots_obj * obj);
+
+ void pots_destroy(pots_obj * obj);
+
+ void pots_printf(const pots_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_SCAN
+#define __ODAS_SIGNAL_SCAN
+
+ /**
+ * \file scan.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+
+ #include "pair.h"
+ #include "point.h"
+ #include "tdoa.h"
+ #include "delta.h"
+ #include "index.h"
+ #include "spatialindex.h"
+
+ //! Scan setup
+ typedef struct scans_obj {
+
+ unsigned int nLevels;
+
+ points_obj ** points;
+ tdoas_obj ** tdoas;
+ deltas_obj ** deltas;
+ spatialindexes_obj ** spatialindexes;
+ pairs_obj * pairs;
+
+ indexes_obj ** indexes;
+
+ } scans_obj;
+
+ scans_obj * scans_construct_null(const unsigned int nLevels);
+
+ void scans_destroy(scans_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_SPATIALGAIN
+#define __ODAS_SIGNAL_SPATIALGAIN
+
+ /**
+ * \file spatialgain.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct spatialgains_obj {
+
+ unsigned int nChannels;
+ unsigned int nPoints;
+
+ float * array;
+
+ } spatialgains_obj;
+
+ spatialgains_obj * spatialgains_construct_zero(const unsigned int nChannels, const unsigned int nPoints);
+
+ spatialgains_obj * spatialgains_clone(const spatialgains_obj * obj);
+
+ void spatialgains_destroy(spatialgains_obj * obj);
+
+ void spatialgains_printf(const spatialgains_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_SPATIALINDEX
+#define __ODAS_SIGNAL_SPATIALINDEX
+
+ /**
+ * \file spatialindex.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct spatialindexes_obj {
+
+ unsigned int nPoints;
+ unsigned int nPairs;
+
+ unsigned int * array;
+ unsigned int * count;
+
+ } spatialindexes_obj;
+
+ spatialindexes_obj * spatialindexes_construct_zero(const unsigned int nPoints, const unsigned int nPairs);
+
+ spatialindexes_obj * spatialindexes_clone(const spatialindexes_obj * obj);
+
+ void spatialindexes_destroy(spatialindexes_obj * obj);
+
+ void spatialindexes_printf(const spatialindexes_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_SPATIALMASK
+#define __ODAS_SIGNAL_SPATIALMASK
+
+ /**
+ * \file spatialmask.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct spatialmasks_obj {
+
+ unsigned int nPoints;
+ unsigned int nPairs;
+
+ char * array;
+
+ } spatialmasks_obj;
+
+ spatialmasks_obj * spatialmasks_construct_zero(const unsigned int nPoints, const unsigned int nPairs);
+
+ spatialmasks_obj * spatialmasks_clone(const spatialmasks_obj * obj);
+
+ void spatialmasks_destroy(spatialmasks_obj * obj);
+
+ void spatialmasks_printf(const spatialmasks_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_STEER
+#define __ODAS_SIGNAL_STEER
+
+ /**
+ * \file steer.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct steers_obj {
+
+ unsigned int nSeps;
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+
+ float ** array;
+
+ } steers_obj;
+
+ steers_obj * steers_construct_zero(const unsigned int halfFrameSize, const unsigned int nSeps, const unsigned int nChannels);
+
+ void steers_destroy(steers_obj * obj);
+
+ void steers_copy(steers_obj * dest, const steers_obj * src);
+
+ void steers_printf(const steers_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_TARGET
+#define __ODAS_SIGNAL_TARGET
+
+ /**
+ * \file target.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct targets_obj {
+
+ unsigned int nTargets;
+ char ** tags;
+ float * array;
+
+ } targets_obj;
+
+ targets_obj * targets_construct_zero(const unsigned int nTargets);
+
+ void targets_destroy(targets_obj * obj);
+
+ targets_obj * targets_clone(const targets_obj * obj);
+
+ void targets_copy(targets_obj * dest, const targets_obj * src);
+
+ void targets_zero(targets_obj * obj);
+
+ void targets_printf(const targets_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_TAU
+#define __ODAS_SIGNAL_TAU
+
+ /**
+ * \file tau.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct taus_obj {
+
+ unsigned int nPoints;
+ unsigned int nPairs;
+ float * mu;
+ float * sigma2;
+
+ } taus_obj;
+
+ taus_obj * taus_construct_zero(const unsigned int nPoints, const unsigned int nPairs);
+
+ void taus_destroy(taus_obj * obj);
+
+ void taus_printf(const taus_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_TDOA
+#define __ODAS_SIGNAL_TDOA
+
+ /**
+ * \file tdoa.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct tdoas_obj {
+
+ unsigned int nPoints;
+ unsigned int nPairs;
+ unsigned int * array;
+ unsigned int * min;
+ unsigned int * max;
+
+ } tdoas_obj;
+
+ tdoas_obj * tdoas_construct_zero(const unsigned int nPoints, const unsigned int nPairs);
+
+ void tdoas_destroy(tdoas_obj * obj);
+
+ void tdoas_printf(const tdoas_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_TRACK
+#define __ODAS_SIGNAL_TRACK
+
+ /**
+ * \file track.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct tracks_obj {
+
+ unsigned int nTracks;
+ unsigned long long * ids;
+ char ** tags;
+ float * array;
+ float * activity;
+
+ } tracks_obj;
+
+ tracks_obj * tracks_construct_zero(const unsigned int nTracks);
+
+ void tracks_destroy(tracks_obj * obj);
+
+ tracks_obj * tracks_clone(const tracks_obj * obj);
+
+ void tracks_copy(tracks_obj * dest, const tracks_obj * src);
+
+ void tracks_zero(tracks_obj * obj);
+
+ void tracks_printf(const tracks_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_TRIANGLE
+#define __ODAS_SIGNAL_TRIANGLE
+
+ /**
+ * \file triangle.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct triangles_obj {
+
+ unsigned nTriangles;
+ float * array;
+
+ } triangles_obj;
+
+ triangles_obj * triangles_construct_zero(const unsigned int nTriangles);
+
+ void triangles_destroy(triangles_obj * obj);
+
+ void triangles_printf(const triangles_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_WINDOW
+#define __ODAS_SIGNAL_WINDOW
+
+ /**
+ * \file window.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+
+ typedef struct window_obj {
+
+ unsigned int frameSize;
+ float * array;
+
+ } window_obj;
+
+ window_obj * window_construct_zero(const unsigned int frameSize);
+
+ void window_destroy(window_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SIGNAL_XCORR
+#define __ODAS_SIGNAL_XCORR
+
+ /**
+ * \file xcorr.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ typedef struct xcorrs_obj {
+
+ unsigned int nSignals;
+ unsigned int frameSize;
+ float ** array;
+
+ } xcorrs_obj;
+
+ xcorrs_obj * xcorrs_construct_zero(const unsigned int nSignals, const unsigned int frameSize);
+
+ void xcorrs_destroy(xcorrs_obj * obj);
+
+ void xcorrs_copy(xcorrs_obj * dest, const xcorrs_obj * src);
+
+ void xcorrs_zero(xcorrs_obj * obj);
+
+ void xcorrs_printf(const xcorrs_obj * obj);
+
+ void xcorrs_printf_signal(const xcorrs_obj * obj, const unsigned int iSignal);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SINK_CATEGORIES
+#define __ODAS_SINK_CATEGORIES
+
+ /**
+ * \file snk_categories.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+
+ #include "../general/format.h"
+ #include "../general/interface.h"
+ #include "../message/msg_categories.h"
+ #include "../utils/pcm.h"
+
+ typedef struct snk_categories_obj {
+
+ unsigned long long timeStamp;
+
+ unsigned int nChannels;
+ unsigned int fS;
+
+ format_obj * format;
+ interface_obj * interface;
+
+ char * buffer;
+ unsigned int bufferSize;
+
+ FILE * fp;
+
+ struct sockaddr_in sserver;
+ int sid;
+
+ msg_categories_obj * in;
+
+ } snk_categories_obj;
+
+ typedef struct snk_categories_cfg {
+
+ unsigned int fS;
+ format_obj * format;
+ interface_obj * interface;
+
+ } snk_categories_cfg;
+
+ snk_categories_obj * snk_categories_construct(const snk_categories_cfg * snk_categories_config, const msg_categories_cfg * msg_categories_config);
+
+ void snk_categories_destroy(snk_categories_obj * obj);
+
+ void snk_categories_connect(snk_categories_obj * obj, msg_categories_obj * in);
+
+ void snk_categories_disconnect(snk_categories_obj * obj);
+
+ void snk_categories_open(snk_categories_obj * obj);
+
+ void snk_categories_open_interface_blackhole(snk_categories_obj * obj);
+
+ void snk_categories_open_interface_file(snk_categories_obj * obj);
+
+ void snk_categories_open_interface_socket(snk_categories_obj * obj);
+
+ void snk_categories_open_interface_terminal(snk_categories_obj * obj);
+
+ void snk_categories_close(snk_categories_obj * obj);
+
+ void snk_categories_close_interface_blackhole(snk_categories_obj * obj);
+
+ void snk_categories_close_interface_file(snk_categories_obj * obj);
+
+ void snk_categories_close_interface_socket(snk_categories_obj * obj);
+
+ void snk_categories_close_interface_terminal(snk_categories_obj * obj);
+
+ int snk_categories_process(snk_categories_obj * obj);
+
+ void snk_categories_process_interface_blackhole(snk_categories_obj * obj);
+
+ void snk_categories_process_interface_file(snk_categories_obj * obj);
+
+ void snk_categories_process_interface_socket(snk_categories_obj * obj);
+
+ void snk_categories_process_interface_terminal(snk_categories_obj * obj);
+
+ void snk_categories_process_format_text_json(snk_categories_obj * obj);
+
+ void snk_categories_process_format_undefined(snk_categories_obj * obj);
+
+ snk_categories_cfg * snk_categories_cfg_construct(void);
+
+ void snk_categories_cfg_destroy(snk_categories_cfg * snk_categories_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SINK_HOPS
+#define __ODAS_SINK_HOPS
+
+ /**
+ * \file snk_hops.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+
+ #include "../general/format.h"
+ #include "../general/interface.h"
+ #include "../message/msg_hops.h"
+ #include "../utils/pcm.h"
+
+ typedef struct snk_hops_obj {
+
+ unsigned long long timeStamp;
+
+ unsigned int hopSize;
+ unsigned int nChannels;
+ unsigned int fS;
+
+ format_obj * format;
+ interface_obj * interface;
+
+ char * buffer;
+ unsigned int bufferSize;
+
+ FILE * fp;
+
+ struct sockaddr_in sserver;
+ int sid;
+
+ char bytes[4];
+
+ msg_hops_obj * in;
+
+ } snk_hops_obj;
+
+ typedef struct snk_hops_cfg {
+
+ unsigned int fS;
+ format_obj * format;
+ interface_obj * interface;
+
+ } snk_hops_cfg;
+
+ snk_hops_obj * snk_hops_construct(const snk_hops_cfg * snk_hops_config, const msg_hops_cfg * msg_hops_config);
+
+ void snk_hops_destroy(snk_hops_obj * obj);
+
+ void snk_hops_connect(snk_hops_obj * obj, msg_hops_obj * in);
+
+ void snk_hops_disconnect(snk_hops_obj * obj);
+
+ void snk_hops_open(snk_hops_obj * obj);
+
+ void snk_hops_open_interface_blackhole(snk_hops_obj * obj);
+
+ void snk_hops_open_interface_file(snk_hops_obj * obj);
+
+ void snk_hops_open_interface_socket(snk_hops_obj * obj);
+
+ void snk_hops_close(snk_hops_obj * obj);
+
+ void snk_hops_close_interface_blackhole(snk_hops_obj * obj);
+
+ void snk_hops_close_interface_file(snk_hops_obj * obj);
+
+ void snk_hops_close_interface_socket(snk_hops_obj * obj);
+
+ int snk_hops_process(snk_hops_obj * obj);
+
+ void snk_hops_process_interface_blackhole(snk_hops_obj * obj);
+
+ void snk_hops_process_interface_file(snk_hops_obj * obj);
+
+ void snk_hops_process_interface_socket(snk_hops_obj * obj);
+
+ void snk_hops_process_format_binary_int08(snk_hops_obj * obj);
+
+ void snk_hops_process_format_binary_int16(snk_hops_obj * obj);
+
+ void snk_hops_process_format_binary_int24(snk_hops_obj * obj);
+
+ void snk_hops_process_format_binary_int32(snk_hops_obj * obj);
+
+ void snk_hops_process_format_undefined(snk_hops_obj * obj);
+
+ snk_hops_cfg * snk_hops_cfg_construct(void);
+
+ void snk_hops_cfg_destroy(snk_hops_cfg * snk_hops_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SINK_POTS
+#define __ODAS_SINK_POTS
+
+ /**
+ * \file snk_pots.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <unistd.h>
+
+ #include "../general/format.h"
+ #include "../general/interface.h"
+ #include "../message/msg_pots.h"
+
+ typedef struct snk_pots_obj {
+
+ unsigned long long timeStamp;
+
+ unsigned int nPots;
+ unsigned int fS;
+
+ format_obj * format;
+ interface_obj * interface;
+
+ char * buffer;
+ unsigned int bufferSize;
+
+ FILE * fp;
+
+ struct sockaddr_in sserver;
+ int sid;
+
+ msg_pots_obj * in;
+
+ } snk_pots_obj;
+
+ typedef struct snk_pots_cfg {
+
+ unsigned int fS;
+ format_obj * format;
+ interface_obj * interface;
+
+ } snk_pots_cfg;
+
+ snk_pots_obj * snk_pots_construct(const snk_pots_cfg * snk_pots_config, const msg_pots_cfg * msg_pots_config);
+
+ void snk_pots_destroy(snk_pots_obj * obj);
+
+ void snk_pots_connect(snk_pots_obj * obj, msg_pots_obj * in);
+
+ void snk_pots_disconnect(snk_pots_obj * obj);
+
+ void snk_pots_open(snk_pots_obj * obj);
+
+ void snk_pots_open_interface_blackhole(snk_pots_obj * obj);
+
+ void snk_pots_open_interface_file(snk_pots_obj * obj);
+
+ void snk_pots_open_interface_socket(snk_pots_obj * obj);
+
+ void snk_pots_open_interface_terminal(snk_pots_obj * obj);
+
+ void snk_pots_close(snk_pots_obj * obj);
+
+ void snk_pots_close_interface_blackhole(snk_pots_obj * obj);
+
+ void snk_pots_close_interface_file(snk_pots_obj * obj);
+
+ void snk_pots_close_interface_socket(snk_pots_obj * obj);
+
+ void snk_pots_close_interface_terminal(snk_pots_obj * obj);
+
+ int snk_pots_process(snk_pots_obj * obj);
+
+ void snk_pots_process_interface_blackhole(snk_pots_obj * obj);
+
+ void snk_pots_process_interface_file(snk_pots_obj * obj);
+
+ void snk_pots_process_interface_socket(snk_pots_obj * obj);
+
+ void snk_pots_process_interface_terminal(snk_pots_obj * obj);
+
+ void snk_pots_process_format_binary_float(snk_pots_obj * obj);
+
+ void snk_pots_process_format_text_json(snk_pots_obj * obj);
+
+ void snk_pots_process_format_undefined(snk_pots_obj * obj);
+
+ snk_pots_cfg * snk_pots_cfg_construct(void);
+
+ void snk_pots_cfg_destroy(snk_pots_cfg * snk_pots_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SINK_POWERS
+#define __ODAS_SINK_POWERS
+
+ /**
+ * \file snk_powers.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+
+ #include "../general/format.h"
+ #include "../general/interface.h"
+ #include "../message/msg_powers.h"
+
+ typedef struct snk_powers_obj {
+
+ unsigned long long timeStamp;
+
+ unsigned int halfFrameSize;
+ unsigned int nChannels;
+ unsigned int fS;
+
+ format_obj * format;
+ interface_obj * interface;
+
+ char * buffer;
+ unsigned int bufferSize;
+
+ FILE * fp;
+
+ msg_powers_obj * in;
+
+ } snk_powers_obj;
+
+ typedef struct snk_powers_cfg {
+
+ unsigned int fS;
+ format_obj * format;
+ interface_obj * interface;
+
+ } snk_powers_cfg;
+
+ snk_powers_obj * snk_powers_construct(const snk_powers_cfg * snk_powers_config, const msg_powers_cfg * msg_powers_config);
+
+ void snk_powers_destroy(snk_powers_obj * obj);
+
+ void snk_powers_connect(snk_powers_obj * obj, msg_powers_obj * in);
+
+ void snk_powers_disconnect(snk_powers_obj * obj);
+
+ void snk_powers_open(snk_powers_obj * obj);
+
+ void snk_powers_open_interface_blackhole(snk_powers_obj * obj);
+
+ void snk_powers_close(snk_powers_obj * obj);
+
+ void snk_powers_close_interface_blackhole(snk_powers_obj * obj);
+
+ int snk_powers_process(snk_powers_obj * obj);
+
+ void snk_powers_process_interface_blackhole(snk_powers_obj * obj);
+
+ void snk_powers_process_format_undefined(snk_powers_obj * obj);
+
+ snk_powers_cfg * snk_powers_cfg_construct(void);
+
+ void snk_powers_cfg_destroy(snk_powers_cfg * snk_powers_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SINK_SPECTRA
+#define __ODAS_SINK_SPECTRA
+
+ /**
+ * \file snk_spectra.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+
+ #include "../general/format.h"
+ #include "../general/interface.h"
+ #include "../message/msg_spectra.h"
+
+ typedef struct snk_spectra_obj {
+
+ unsigned long long timeStamp;
+
+ unsigned int halfFrameSize;
+ unsigned int nChannels;
+ unsigned int fS;
+
+ format_obj * format;
+ interface_obj * interface;
+
+ FILE * fp;
+
+ msg_spectra_obj * in;
+
+ } snk_spectra_obj;
+
+ typedef struct snk_spectra_cfg {
+
+ unsigned int fS;
+ format_obj * format;
+ interface_obj * interface;
+
+ } snk_spectra_cfg;
+
+ snk_spectra_obj * snk_spectra_construct(const snk_spectra_cfg * snk_spectra_config, const msg_spectra_cfg * msg_spectra_config);
+
+ void snk_spectra_destroy(snk_spectra_obj * obj);
+
+ void snk_spectra_connect(snk_spectra_obj * obj, msg_spectra_obj * in);
+
+ void snk_spectra_disconnect(snk_spectra_obj * obj);
+
+ void snk_spectra_open(snk_spectra_obj * obj);
+
+ void snk_spectra_open_interface_blackhole(snk_spectra_obj * obj);
+
+ void snk_spectra_close(snk_spectra_obj * obj);
+
+ void snk_spectra_close_interface_blackhole(snk_spectra_obj * obj);
+
+ int snk_spectra_process(snk_spectra_obj * obj);
+
+ void snk_spectra_process_interface_blackhole(snk_spectra_obj * obj);
+
+ void snk_spectra_process_format_undefined(snk_spectra_obj * obj);
+
+ snk_spectra_cfg * snk_spectra_cfg_construct(void);
+
+ void snk_spectra_cfg_destroy(snk_spectra_cfg * snk_spectra_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SINK_TRACKS
+#define __ODAS_SINK_TRACKS
+
+ /**
+ * \file snk_tracks.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <unistd.h>
+
+ #include "../general/format.h"
+ #include "../general/interface.h"
+ #include "../message/msg_tracks.h"
+
+ typedef struct snk_tracks_obj {
+
+ unsigned long long timeStamp;
+
+ unsigned int nTracks;
+ unsigned int fS;
+
+ format_obj * format;
+ interface_obj * interface;
+
+ char * buffer;
+ unsigned int bufferSize;
+
+ FILE * fp;
+
+ struct sockaddr_in sserver;
+ int sid;
+
+ msg_tracks_obj * in;
+
+ } snk_tracks_obj;
+
+ typedef struct snk_tracks_cfg {
+
+ unsigned int fS;
+ format_obj * format;
+ interface_obj * interface;
+
+ } snk_tracks_cfg;
+
+ snk_tracks_obj * snk_tracks_construct(const snk_tracks_cfg * snk_tracks_config, const msg_tracks_cfg * msg_tracks_config);
+
+ void snk_tracks_destroy(snk_tracks_obj * obj);
+
+ void snk_tracks_connect(snk_tracks_obj * obj, msg_tracks_obj * in);
+
+ void snk_tracks_disconnect(snk_tracks_obj * obj);
+
+ void snk_tracks_open(snk_tracks_obj * obj);
+
+ void snk_tracks_open_interface_blackhole(snk_tracks_obj * obj);
+
+ void snk_tracks_open_interface_file(snk_tracks_obj * obj);
+
+ void snk_tracks_open_interface_socket(snk_tracks_obj * obj);
+
+ void snk_tracks_open_interface_terminal(snk_tracks_obj * obj);
+
+ void snk_tracks_close(snk_tracks_obj * obj);
+
+ void snk_tracks_close_interface_blackhole(snk_tracks_obj * obj);
+
+ void snk_tracks_close_interface_file(snk_tracks_obj * obj);
+
+ void snk_tracks_close_interface_socket(snk_tracks_obj * obj);
+
+ void snk_tracks_close_interface_terminal(snk_tracks_obj * obj);
+
+ int snk_tracks_process(snk_tracks_obj * obj);
+
+ void snk_tracks_process_interface_blackhole(snk_tracks_obj * obj);
+
+ void snk_tracks_process_interface_file(snk_tracks_obj * obj);
+
+ void snk_tracks_process_interface_socket(snk_tracks_obj * obj);
+
+ void snk_tracks_process_interface_terminal(snk_tracks_obj * obj);
+
+ void snk_tracks_process_format_text_json(snk_tracks_obj * obj);
+
+ void snk_tracks_process_format_undefined(snk_tracks_obj * obj);
+
+ snk_tracks_cfg * snk_tracks_cfg_construct(void);
+
+ void snk_tracks_cfg_destroy(snk_tracks_cfg * snk_tracks_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SOURCE_HOPS
+#define __ODAS_SOURCE_HOPS
+
+ /**
+ * \file src_hops.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <alsa/asoundlib.h>
+
+ #include "../general/format.h"
+ #include "../general/interface.h"
+ #include "../message/msg_hops.h"
+ #include "../signal/hop.h"
+ #include "../utils/pcm.h"
+
+ typedef struct src_hops_obj {
+
+ unsigned long long timeStamp;
+
+ unsigned int hopSize;
+ unsigned int nChannels;
+ unsigned int fS;
+
+ format_obj * format;
+ interface_obj * interface;
+
+ FILE * fp;
+ snd_pcm_t * ch;
+
+ char * buffer;
+ unsigned int bufferSize;
+
+ char bytes[4];
+
+ msg_hops_obj * out;
+
+ } src_hops_obj;
+
+ typedef struct src_hops_cfg {
+
+ format_obj * format;
+ interface_obj * interface;
+
+ } src_hops_cfg;
+
+ src_hops_obj * src_hops_construct(const src_hops_cfg * src_hops_config, const msg_hops_cfg * msg_hops_config);
+
+ void src_hops_destroy(src_hops_obj * obj);
+
+ void src_hops_connect(src_hops_obj * obj, msg_hops_obj * out);
+
+ void src_hops_disconnect(src_hops_obj * obj);
+
+ void src_hops_open(src_hops_obj * obj);
+
+ void src_hops_open_interface_file(src_hops_obj * obj);
+
+ void src_hops_open_interface_soundcard(src_hops_obj * obj);
+
+ void src_hops_close(src_hops_obj * obj);
+
+ void src_hops_close_interface_file(src_hops_obj * obj);
+
+ void src_hops_close_interface_soundcard(src_hops_obj * obj);
+
+ int src_hops_process(src_hops_obj * obj);
+
+ int src_hops_process_interface_file(src_hops_obj * obj);
+
+ int src_hops_process_interface_soundcard(src_hops_obj * obj);
+
+ void src_hops_process_format_binary_int08(src_hops_obj * obj);
+
+ void src_hops_process_format_binary_int16(src_hops_obj * obj);
+
+ void src_hops_process_format_binary_int24(src_hops_obj * obj);
+
+ void src_hops_process_format_binary_int32(src_hops_obj * obj);
+
+ src_hops_cfg * src_hops_cfg_construct(void);
+
+ void src_hops_cfg_destroy(src_hops_cfg * src_hops_config);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_SYSTEM_ACORR2PITCH
+#define __ODAS_SYSTEM_ACORR2PITCH
+
+ /**
+ * \file acorr2pitch.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <signal/acorr.h>
+ #include <signal/pitch.h>
+
+ #include <math.h>
+
+ typedef struct acorr2pitch_obj {
+
+ unsigned int nSignals;
+ unsigned int halfFrameSize;
+ unsigned int frameSize;
+ unsigned int winSize;
+
+ } acorr2pitch_obj;
+
+ acorr2pitch_obj * acorr2pitch_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize, const unsigned int winSize);
+
+ void acorr2pitch_destroy(acorr2pitch_obj * obj);
+
+ void acorr2pitch_process(acorr2pitch_obj * obj, const acorrs_obj * acorrs, pitches_obj * pitches);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_DEMIXING2ENV
+#define __ODAS_SYSTEM_DEMIXING2ENV
+
+ /**
+ * \file demixing2env.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+ #include <math.h>
+
+ #include <signal/demixing.h>
+ #include <signal/env.h>
+ #include <signal/mask.h>
+ #include <signal/track.h>
+
+ typedef struct demixing2env_obj {
+
+ unsigned int nSeps;
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+
+ } demixing2env_obj;
+
+ demixing2env_obj * demixing2env_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize);
+
+ void demixing2env_destroy(demixing2env_obj * obj);
+
+ void demixing2env_process(demixing2env_obj * obj, const tracks_obj * tracks, const demixings_obj * demixings, const masks_obj * masks, const envs_obj * envsChannel, envs_obj * envsSeparated);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_DEMIXING2FREQ
+#define __ODAS_SYSTEM_DEMIXING2FREQ
+
+ /**
+ * \file demixing2freq.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+ #include <math.h>
+
+ #include <signal/demixing.h>
+ #include <signal/freq.h>
+ #include <signal/mask.h>
+ #include <signal/track.h>
+
+ typedef struct demixing2freq_obj {
+
+ unsigned int nSeps;
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+
+ } demixing2freq_obj;
+
+ demixing2freq_obj * demixing2freq_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize);
+
+ void demixing2freq_destroy(demixing2freq_obj * obj);
+
+ void demixing2freq_process(demixing2freq_obj * obj, const tracks_obj * tracks, const demixings_obj * demixings, const masks_obj * masks, const freqs_obj * freqsChannel, freqs_obj * freqsSeparated);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_ENV2ENV
+#define __ODAS_SYSTEM_ENV2ENV
+
+ /**
+ * \file env2env.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
+
+ #include <signal/env.h>
+ #include <signal/track.h>
+ #include <utils/fft.h>
+ #include <utils/transcendental.h>
+
+ typedef struct env2env_mcra_obj {
+
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+
+ unsigned int bSize;
+ float alphaS;
+ unsigned int L;
+ float delta;
+ float alphaD;
+
+ unsigned long long * idsPrev;
+ unsigned int * l;
+
+ float * b;
+ float ** S;
+ float ** Smin;
+ float ** SminPrev;
+ float ** SPrev;
+ float ** Stmp;
+ float ** StmpPrev;
+ float ** Sf;
+ float ** lambdaD;
+ float ** lambdaDnext;
+
+ } env2env_mcra_obj;
+
+ typedef struct env2env_weight_obj {
+
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+
+ float alphaD;
+ float epsilon;
+
+ float ** XPrev;
+ float ** xi;
+ float ** zetaPrev;
+
+ } env2env_weight_obj;
+
+ typedef struct env2env_interf_obj {
+
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+
+ float eta;
+ float alphaZ;
+
+ float ** Zs;
+ float ** ZsPrev;
+
+ } env2env_interf_obj;
+
+ typedef struct env2env_gainspeech_obj {
+
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+
+ float alphaPmin;
+ float epsilon;
+
+ float ** gamma;
+ float ** alphaP;
+ float ** xi;
+ float ** GH1;
+ float ** v;
+
+ transcendental_obj * transcendental;
+
+ } env2env_gainspeech_obj;
+
+ typedef struct env2env_probspeech_obj {
+
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+ unsigned int frameSize;
+
+ float theta;
+ float alpha;
+ float maxAbsenceProb;
+ float Gmin;
+
+ unsigned int winSizeLocal;
+ unsigned int winSizeGlobal;
+ unsigned int winSizeFrame;
+
+ fft_obj * fft;
+
+ float * winLocal;
+ float * winGlobal;
+ float * winFrame;
+
+ float * winLocalShifted;
+ float * winGlobalShifted;
+ float * winFrameShifted;
+
+ float * winLocalShiftedFreq;
+ float * winGlobalShiftedFreq;
+ float * winFrameShiftedFreq;
+
+ float ** xiTime;
+ float ** xiFreq;
+
+ float ** xiSmoothedLocalFreq;
+ float ** xiSmoothedGlobalFreq;
+ float ** xiSmoothedFrameFreq;
+ float ** xiSmoothedLocalTime;
+ float ** xiSmoothedGlobalTime;
+ float ** xiSmoothedFrameTime;
+ float ** xiSmoothedLocal;
+ float ** xiSmoothedGlobal;
+ float ** xiSmoothedFrame;
+
+ float ** zetaLocal;
+ float ** zetaLocalPrev;
+ float ** zetaGlobal;
+ float ** zetaGlobalPrev;
+ float ** zetaFrame;
+ float ** zetaFramePrev;
+
+ float ** PLocal;
+ float ** PGlobal;
+ float ** PFrame;
+
+ float ** q;
+ float ** p;
+
+ } env2env_probspeech_obj;
+
+ typedef struct env2env_gainall_obj {
+
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+
+ float Gmin;
+
+ } env2env_gainall_obj;
+
+ typedef struct env2env_gainratio_obj {
+
+ unsigned int nInitChannels;
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+
+ float Gmin;
+ float Gmid;
+ float Gslope;
+
+ float epsilon;
+
+ } env2env_gainratio_obj;
+
+ env2env_mcra_obj * env2env_mcra_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const unsigned int bSize, const float alphaS, const unsigned int L, const float delta, const float alphaD);
+
+ void env2env_mcra_destroy(env2env_mcra_obj * obj);
+
+ void env2env_mcra_process(env2env_mcra_obj * obj, const tracks_obj * tracks, const envs_obj * noisys, const envs_obj * estNoises, envs_obj * noises);
+
+ env2env_weight_obj * env2env_weight_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const float alphaD, const float epsilon);
+
+ void env2env_weight_destroy(env2env_weight_obj * obj);
+
+ void env2env_weight_process(env2env_weight_obj * obj, const tracks_obj * tracks, const envs_obj * noisys, const envs_obj * noises, envs_obj * weights);
+
+ env2env_interf_obj * env2env_interf_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const float eta, const float alphaZ);
+
+ void env2env_interf_destroy(env2env_interf_obj * obj);
+
+ void env2env_interf_process(env2env_interf_obj * obj, const tracks_obj * tracks, const envs_obj * seps, const envs_obj * noises, envs_obj * interfs);
+
+ env2env_gainspeech_obj * env2env_gainspeech_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const float alphaPmin, const float epsilon);
+
+ void env2env_gainspeech_destroy(env2env_gainspeech_obj * obj);
+
+ void env2env_gainspeech_process(env2env_gainspeech_obj * obj, const tracks_obj * tracks, const envs_obj * seps, const envs_obj * noises, envs_obj * gains, envs_obj * snrs, envs_obj * vs);
+
+ env2env_probspeech_obj * env2env_probspeech_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const float theta, const float alpha, const float maxAbsenceProb, const float Gmin, const unsigned int winSizeLocal, const unsigned int winSizeGlobal, const unsigned int winSizeFrame);
+
+ void env2env_probspeech_destroy(env2env_probspeech_obj * obj);
+
+ void env2env_probspeech_process(env2env_probspeech_obj * obj, const tracks_obj * tracks, const envs_obj * snrs, const envs_obj * vs, envs_obj * probspeechs);
+
+ env2env_gainall_obj * env2env_gainall_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const float Gmin);
+
+ void env2env_gainall_destroy(env2env_gainall_obj * obj);
+
+ void env2env_gainall_process(env2env_gainall_obj * obj, const tracks_obj * tracks, const envs_obj * gainspeeches, const envs_obj * probspeeches, envs_obj * gainalls);
+
+ env2env_gainratio_obj * env2env_gainratio_construct_zero(const unsigned int nInitChannels, const unsigned int nChannels, const unsigned int halfFrameSize, const float Gmin, const float Gmid, const float Gslope, const float epsilon);
+
+ void env2env_gainratio_destroy(env2env_gainratio_obj * obj);
+
+ void env2env_gainratio_process(env2env_gainratio_obj * obj, const tracks_obj * tracks, const envs_obj * seps, const envs_obj * diffuse, envs_obj * gainratio);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_FRAME2FREQ
+#define __ODAS_SYSTEM_FRAME2FREQ
+
+ /**
+ * \file frame2freq.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include <init/windowing.h>
+ #include <signal/frame.h>
+ #include <signal/freq.h>
+ #include <signal/window.h>
+ #include <utils/fft.h>
+
+ typedef struct frame2freq_obj {
+
+ unsigned int frameSize;
+ unsigned int halfFrameSize;
+
+ window_obj * win;
+ float * frame;
+
+ fft_obj * fft;
+
+ } frame2freq_obj;
+
+ frame2freq_obj * frame2freq_construct_zero(const unsigned int frameSize, const unsigned int halfFrameSize);
+
+ void frame2freq_destroy(frame2freq_obj * obj);
+
+ void frame2freq_process(frame2freq_obj * obj, const frames_obj * frames, freqs_obj * freqs);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_FRAME2HOP
+#define __ODAS_SYSTEM_FRAME2HOP
+
+ /**
+ * \file frame2hop.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+
+ #include <signal/hop.h>
+ #include <signal/frame.h>
+
+ typedef struct frame2hop_obj {
+
+ unsigned int hopSize;
+ unsigned int frameSize;
+ unsigned int nSignals;
+
+ float ** array;
+
+ } frame2hop_obj;
+
+ frame2hop_obj * frame2hop_construct_zero(const unsigned int hopSize, const unsigned int frameSize, const unsigned int nSignals);
+
+ void frame2hop_destroy(frame2hop_obj * obj);
+
+ void frame2hop_process(frame2hop_obj * obj, const frames_obj * frames, hops_obj * hops);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_FREQ2ACORR
+#define __ODAS_SYSTEM_FREQ2ACORR
+
+ /**
+ * \file freq2acorr.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+
+ #include <signal/acorr.h>
+ #include <signal/freq.h>
+ #include <utils/fft.h>
+
+ typedef struct freq2acorr_obj {
+
+ unsigned int nSignals;
+ unsigned int halfFrameSize;
+ unsigned int frameSize;
+
+ float * arrayIn;
+ float * arrayOut;
+
+ fft_obj * fft;
+
+ } freq2acorr_obj;
+
+ freq2acorr_obj * freq2acorr_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize);
+
+ void freq2acorr_destroy(freq2acorr_obj * obj);
+
+ void freq2acorr_process(freq2acorr_obj * obj, const freqs_obj * freqs, acorrs_obj * acorrs);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_FREQ2ENV
+#define __ODAS_SYSTEM_FREQ2ENV
+
+ /**
+ * \file freq2env.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include <signal/freq.h>
+ #include <signal/env.h>
+
+ typedef struct freq2env_obj {
+
+ unsigned int halfFrameSize;
+
+ } freq2env_obj;
+
+ freq2env_obj * freq2env_construct_zero(const unsigned int halfFrameSize);
+
+ void freq2env_destroy(freq2env_obj * obj);
+
+ void freq2env_process(freq2env_obj * obj, const freqs_obj * freqs, envs_obj * envs);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_FREQ2FRAME
+#define __ODAS_SYSTEM_FREQ2FRAME
+
+ /**
+ * \file freq2frame.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include <init/windowing.h>
+ #include <signal/frame.h>
+ #include <signal/freq.h>
+ #include <signal/window.h>
+ #include <utils/fft.h>
+
+ typedef struct freq2frame_obj {
+
+ unsigned int frameSize;
+ unsigned int halfFrameSize;
+
+ window_obj * win;
+ float * frame;
+
+ fft_obj * fft;
+
+ } freq2frame_obj;
+
+ freq2frame_obj * freq2frame_construct_zero(const unsigned int frameSize, const unsigned int halfFrameSize);
+
+ void freq2frame_destroy(freq2frame_obj * obj);
+
+ void freq2frame_process(freq2frame_obj * obj, const freqs_obj * freqs, frames_obj * frames);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_FREQ2FREQ
+#define __ODAS_SYSTEM_FREQ2FREQ
+
+ /**
+ * \file freq2freq.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <math.h>
+
+ #include <signal/freq.h>
+ #include <signal/env.h>
+ #include <signal/pair.h>
+ #include <signal/track.h>
+
+ typedef struct freq2freq_phasor_obj {
+
+ unsigned int halfFrameSize;
+ float epsilon;
+
+ } freq2freq_phasor_obj;
+
+ typedef struct freq2freq_weightedphasor_obj {
+
+ unsigned int halfFrameSize;
+ float epsilon;
+
+ } freq2freq_weightedphasor_obj;
+
+ typedef struct freq2freq_product_obj {
+
+ unsigned int halfFrameSize;
+
+ } freq2freq_product_obj;
+
+ typedef struct freq2freq_lowpass_obj {
+
+ unsigned int halfFrameSize;
+ unsigned int lowPassCut;
+
+ } freq2freq_lowpass_obj;
+
+ typedef struct freq2freq_interpolate_obj {
+
+ unsigned halfFrameSize;
+ unsigned halfFrameSizeInterp;
+
+ } freq2freq_interpolate_obj;
+
+ typedef struct freq2freq_gain_obj {
+
+ unsigned int halfFrameSize;
+
+ } freq2freq_gain_obj;
+
+ freq2freq_phasor_obj * freq2freq_phasor_construct_zero(const unsigned int halfFrameSize, const float epsilon);
+
+ void freq2freq_phasor_destroy(freq2freq_phasor_obj * obj);
+
+ void freq2freq_phasor_process(freq2freq_phasor_obj * obj, const freqs_obj * freqs, freqs_obj * phasors);
+
+ freq2freq_weightedphasor_obj * freq2freq_weightedphasor_construct_zero(const unsigned int halfFrameSize, const float epsilon);
+
+ void freq2freq_weightedphasor_destroy(freq2freq_weightedphasor_obj * obj);
+
+ void freq2freq_weightedphasor_process(freq2freq_weightedphasor_obj * obj, const freqs_obj * freqs, const envs_obj * weights, freqs_obj * weightedphasors);
+
+ freq2freq_product_obj * freq2freq_product_construct_zero(const unsigned int halfFrameSize);
+
+ void freq2freq_product_destroy(freq2freq_product_obj * obj);
+
+ void freq2freq_product_process(freq2freq_product_obj * obj, const freqs_obj * freqs1, const freqs_obj * freqs2, const pairs_obj * pairs, freqs_obj * freqs12);
+
+ freq2freq_lowpass_obj * freq2freq_lowpass_construct_zero(const unsigned int halfFrameSize, const unsigned int lowPassCut);
+
+ void freq2freq_lowpass_destroy(freq2freq_lowpass_obj * obj);
+
+ void freq2freq_lowpass_process(freq2freq_lowpass_obj * obj, const freqs_obj * freqsAllPass, freqs_obj * freqsLowPass);
+
+ freq2freq_interpolate_obj * freq2freq_interpolate_construct_zero(const unsigned int halfFrameSize, const unsigned int halfFrameSizeInterp);
+
+ void freq2freq_interpolate_destroy(freq2freq_interpolate_obj * obj);
+
+ void freq2freq_interpolate_process(freq2freq_interpolate_obj * obj, const freqs_obj * freqs, const freqs_obj * freqsInterp);
+
+ freq2freq_gain_obj * freq2freq_gain_construct_zero(const unsigned int halfFrameSize);
+
+ void freq2freq_gain_destroy(freq2freq_gain_obj * obj);
+
+ void freq2freq_gain_process(freq2freq_gain_obj * obj, const freqs_obj * freqsIn, const envs_obj * envsIn, freqs_obj * freqsOut);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_FREQ2XCORR
+#define __ODAS_SYSTEM_FREQ2XCORR
+
+ /**
+ * \file freq2xcorr.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <signal/frame.h>
+ #include <signal/freq.h>
+ #include <signal/pair.h>
+ #include <signal/tdoa.h>
+ #include <signal/xcorr.h>
+ #include <utils/fft.h>
+
+ typedef struct freq2xcorr_obj {
+
+ unsigned int frameSize;
+ unsigned int halfFrameSize;
+
+ float * frame;
+
+ fft_obj * fft;
+
+ } freq2xcorr_obj;
+
+ freq2xcorr_obj * freq2xcorr_construct_zero(const unsigned int frameSize, const unsigned int halfFrameSize);
+
+ void freq2xcorr_destroy(freq2xcorr_obj * obj);
+
+ void freq2xcorr_process(freq2xcorr_obj * obj, const freqs_obj * freqs, const pairs_obj * pairs, xcorrs_obj * xcorrs);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_GAIN2MASK
+#define __ODAS_SYSTEM_GAIN2MASK
+
+ /**
+ * \file gain2mask.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <signal/gain.h>
+ #include <signal/mask.h>
+
+ #include <stdlib.h>
+ #include <string.h>
+
+ typedef struct gain2mask_obj {
+
+ unsigned int nSeps;
+ unsigned int nChannels;
+ float gainMin;
+
+ } gain2mask_obj;
+
+ gain2mask_obj * gain2mask_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const float gainMin);
+
+ void gain2mask_destroy(gain2mask_obj * obj);
+
+ void gain2mask_process(gain2mask_obj * obj, const gains_obj * gains, masks_obj * masks);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_HOP2FRAME
+#define __ODAS_SYSTEM_HOP2FRAME
+
+ /**
+ * \file hop2frame.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+
+ #include <signal/hop.h>
+ #include <signal/frame.h>
+
+ typedef struct hop2frame_obj {
+
+ unsigned int hopSize;
+ unsigned int frameSize;
+ unsigned int nSignals;
+
+ float ** array;
+
+ } hop2frame_obj;
+
+ hop2frame_obj * hop2frame_construct_zero(const unsigned int hopSize, const unsigned int frameSize, const unsigned int nSignals);
+
+ void hop2frame_destroy(hop2frame_obj * obj);
+
+ void hop2frame_process(hop2frame_obj * obj, const hops_obj * hops, frames_obj * frames);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_HOP2HOP
+#define __ODAS_SYSTEM_HOP2HOP
+
+ /**
+ * \file hop2hop.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
+
+ #include <signal/hop.h>
+ #include <general/link.h>
+
+ typedef struct hop2hop_multiplex_obj {
+
+ unsigned int hopSize;
+
+ } hop2hop_multiplex_obj;
+
+ typedef struct hop2hop_buffer_obj {
+
+ unsigned int nSignals;
+ unsigned int hopSizeIn;
+ unsigned int hopSizeOut;
+ float intervalIn;
+ float intervalOut;
+ float intervalSize;
+ unsigned int bufferSize;
+ float ratio;
+ float delta;
+
+ float iWrite;
+ float iRead;
+
+ float ** array;
+
+ } hop2hop_buffer_obj;
+
+ typedef struct hop2hop_gain_obj {
+
+ unsigned int hopSize;
+ float gain;
+
+ } hop2hop_gain_obj;
+
+ hop2hop_multiplex_obj * hop2hop_multiplex_construct_zero(const unsigned int hopSize);
+
+ void hop2hop_multiplex_destroy(hop2hop_multiplex_obj * obj);
+
+ void hop2hop_multiplex_process(hop2hop_multiplex_obj * obj, const links_obj * links, const hops_obj * src, hops_obj * dest);
+
+ hop2hop_buffer_obj * hop2hop_buffer_construct_zero(const unsigned int nSignals, const unsigned int hopSizeIn, const unsigned int hopSizeOut, const float ratio);
+
+ void hop2hop_buffer_destroy(hop2hop_buffer_obj * obj);
+
+ void hop2hop_buffer_push(hop2hop_buffer_obj * obj, const hops_obj * hops);
+
+ void hop2hop_buffer_pop(hop2hop_buffer_obj * obj, hops_obj * hops);
+
+ char hop2hop_buffer_isFull(hop2hop_buffer_obj * obj);
+
+ char hop2hop_buffer_isEmpty(hop2hop_buffer_obj * obj);
+
+ hop2hop_gain_obj * hop2hop_gain_construct_zero(const unsigned int hopSize, const float gain);
+
+ void hop2hop_gain_destroy(hop2hop_gain_obj * obj);
+
+ void hop2hop_gain_process(hop2hop_gain_obj * obj, const hops_obj * src, hops_obj * dest);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_KALMAN2PRIOR
+#define __ODAS_SYSTEM_KALMAN2PRIOR
+
+ /**
+ * \file kalman2prior.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <math.h>
+
+ #include <signal/coherence.h>
+ #include <signal/kalman.h>
+ #include <signal/pot.h>
+ #include <utils/matrix.h>
+
+ typedef struct kalman2coherence_obj {
+
+ float epsilon;
+
+ matrix_obj * H;
+ matrix_obj * Ht;
+
+ matrix_obj * mu_t;
+ matrix_obj * mu_t_t;
+ matrix_obj * mu_s;
+ matrix_obj * mu_s_t;
+ matrix_obj * mu_st;
+ matrix_obj * mu_st_t;
+
+ matrix_obj * HP;
+ matrix_obj * sigma_epsilon;
+
+ matrix_obj * sigma_t;
+ matrix_obj * sigma_s;
+ matrix_obj * sigma_st;
+
+ matrix_obj * sigma_t_epsilon;
+ matrix_obj * sigma_t_inv;
+ matrix_obj * sigma_s_inv;
+ matrix_obj * sigma_st_inv;
+
+ matrix_obj * sigma_t_inv_mu_t;
+ matrix_obj * sigma_s_inv_mu_s;
+ matrix_obj * sigma_st_inv_mu_st;
+
+ matrix_obj * mu_t_t_sigma_t_inv_mu_t;
+ matrix_obj * mu_s_t_sigma_s_inv_mu_s;
+ matrix_obj * mu_st_t_sigma_st_inv_mu_st;
+
+ matrix_obj * sigma_t_inv_mu_t_sigma_s_inv_mu_s;
+
+ } kalman2coherence_obj;
+
+ kalman2coherence_obj * kalman2coherence_construct(const float epsilon, const float sigmaR);
+
+ void kalman2coherence_destroy(kalman2coherence_obj * obj);
+
+ void kalman2coherence_process(kalman2coherence_obj * obj, const kalman_obj * kalman, const pots_obj * pots, const unsigned int iTrack, coherences_obj * coherences);
+
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_KALMAN2KALMAN
+#define __ODAS_SYSTEM_KALMAN2KALMAN
+
+ /**
+ * \file kalman2kalman.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <math.h>
+
+ #include <signal/postprob.h>
+ #include <signal/kalman.h>
+ #include <signal/pot.h>
+ #include <signal/target.h>
+ #include <utils/matrix.h>
+
+ typedef struct kalman2kalman_obj {
+
+ float epsilon;
+
+ float deltaT;
+ float sigmaQ;
+ float sigmaR;
+
+ matrix_obj * F;
+ matrix_obj * Ft;
+ matrix_obj * Q;
+ matrix_obj * H;
+ matrix_obj * Ht;
+ matrix_obj * R;
+
+ matrix_obj * FP;
+ matrix_obj * FPFt;
+
+ matrix_obj * K;
+ matrix_obj * PHt;
+ matrix_obj * HP;
+ matrix_obj * HPHt;
+ matrix_obj * HPHt_R;
+ matrix_obj * HPHt_Rinv;
+ matrix_obj * Hx;
+ matrix_obj * z;
+ matrix_obj * z_Hx;
+ matrix_obj * Kz_Hx;
+ matrix_obj * pKz_Hx;
+ matrix_obj * KHP;
+ matrix_obj * pKHP;
+
+ } kalman2kalman_obj;
+
+ kalman2kalman_obj * kalman2kalman_construct(const float deltaT, const float sigmaQ, const float sigmaR, const float epsilon);
+
+ void kalman2kalman_destroy(kalman2kalman_obj * obj);
+
+ void kalman2kalman_init_pots(kalman2kalman_obj * obj, const pots_obj * pots, const unsigned int iPot, kalman_obj * kalman);
+
+ void kalman2kalman_init_targets(kalman2kalman_obj * obj, const targets_obj * targets, const unsigned int iTarget, kalman_obj * kalman);
+
+ void kalman2kalman_predict(kalman2kalman_obj * obj, kalman_obj * kalman);
+
+ void kalman2kalman_predict_static(kalman2kalman_obj * obj, kalman_obj * kalman);
+
+ void kalman2kalman_update(kalman2kalman_obj * obj, const postprobs_obj * postprobs, const unsigned int iTrack, const pots_obj * pots, kalman_obj * kalman);
+
+ void kalman2kalman_update_static(kalman2kalman_obj * obj, const postprobs_obj * postprobs, const unsigned int iTrack, const pots_obj * pots, kalman_obj * kalman);
+
+ void kalman2kalman_estimate(kalman2kalman_obj * obj, const kalman_obj * kalman, float * x, float * y, float * z);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_MIXTURE2MIXTURE
+#define __ODAS_SYSTEM_MIXTURE2MIXTURE
+
+ /**
+ * \file mixture2mixture.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <math.h>
+
+ #include <utils/gaussian.h>
+ #include <signal/coherence.h>
+ #include <signal/mixture.h>
+ #include <signal/pot.h>
+ #include <signal/postprob.h>
+
+ typedef struct mixture2mixture_obj {
+
+ gaussians_1d_obj * active;
+ gaussians_1d_obj * inactive;
+ float diffuse;
+
+ float Pfalse;
+ float Pnew;
+ float Ptrack;
+ float epsilon;
+
+ } mixture2mixture_obj;
+
+ mixture2mixture_obj * mixture2mixture_construct(const gaussians_1d_obj * active_gmm, const gaussians_1d_obj * inactive_gmm, const float diffuse_cst, const float Pfalse, const float Pnew, const float Ptrack, const float epsilon);
+
+ void mixture2mixture_destroy(mixture2mixture_obj * obj);
+
+ void mixture2mixture_process(mixture2mixture_obj * obj, mixture_obj * mixture, const pots_obj * pots, const coherences_obj * coherences, postprobs_obj * postprobs);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_PARTICLE2COHERENCE
+#define __ODAS_SYSTEM_PARTICLE2COHERENCE
+
+ /**
+ * \file particle2coherence.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <utils/gaussian.h>
+ #include <signal/particle.h>
+ #include <signal/coherence.h>
+ #include <signal/pot.h>
+
+ typedef struct particle2coherence_obj {
+
+ float sigmaR;
+ float expScale;
+ float expFactor;
+
+ } particle2coherence_obj;
+
+ particle2coherence_obj * particle2coherence_construct(const float sigmaR);
+
+ void particle2coherence_destroy(particle2coherence_obj * obj);
+
+ void particle2coherence_process(particle2coherence_obj * obj, const particles_obj * particles, const pots_obj * pots, const unsigned int iTrack, coherences_obj * coherences);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_PARTICLE2PARTICLE
+#define __ODAS_SYSTEM_PARTICLE2PARTICLE
+
+ /**
+ * \file particle2particle.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <utils/gaussian.h>
+ #include <utils/random.h>
+ #include <signal/particle.h>
+ #include <signal/postprob.h>
+ #include <signal/pot.h>
+ #include <signal/target.h>
+
+ typedef struct particle2particle_obj {
+
+ unsigned int nParticles;
+ float deltaT;
+
+ float alphas[3];
+ float betas[3];
+ float as[3];
+ float bs[3];
+ float ratios[3];
+
+ float sigmaR;
+ float expScale;
+ float expFactor;
+
+ float * pdf_ratio;
+ unsigned int * indexes_ratio;
+ random_obj * rnd_ratio;
+
+ float * pdf_weight;
+ unsigned int * indexes_weight;
+ random_obj * rnd_weight;
+
+ float * realisation_normal;
+ double epsilon;
+ normaloff_obj * normaloff;
+
+ float * sum_P_p_x_O;
+ particles_obj * particles;
+
+ float Nmin;
+
+ } particle2particle_obj;
+
+ particle2particle_obj * particle2particle_construct(const unsigned int nParticles, const float deltaT, const float st_alpha, const float st_beta, const float st_ratio, const float ve_alpha, const float ve_beta, const float ve_ratio, const float ac_alpha, const float ac_beta, const float ac_ratio, const double epsilon, const float sigmaR, const float Nmin);
+
+ void particle2particle_destroy(particle2particle_obj * obj);
+
+ void particle2particle_init_pots(particle2particle_obj * obj, const pots_obj * pots, const unsigned int iPot, particles_obj * particles);
+
+ void particle2particle_init_targets(particle2particle_obj * obj, const targets_obj * targets, const unsigned int iTarget, particles_obj * particles);
+
+ void particle2particle_predict(particle2particle_obj * obj, particles_obj * particles);
+
+ void particle2particle_predict_static(particle2particle_obj * obj, particles_obj * particles);
+
+ void particle2particle_update(particle2particle_obj * obj, const postprobs_obj * postprobs, const unsigned int iTrack, const pots_obj * pots, particles_obj * particles);
+
+ void particle2particle_update_static(particle2particle_obj * obj, const postprobs_obj * postprobs, const unsigned int iTrack, const pots_obj * pots, particles_obj * particles);
+
+ void particle2particle_estimate(const particle2particle_obj * obj, const particles_obj * particles, float * x, float * y, float * z);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_PITCH2CATEGORY
+#define __ODAS_SYSTEM_PITCH2CATEGORY
+
+ /**
+ * \file pitch2category.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+ #include <math.h>
+
+ #include <signal/category.h>
+ #include <signal/pitch.h>
+ #include <signal/track.h>
+
+ typedef struct pitch2category_obj {
+
+ unsigned int nSeps;
+
+ float tauMin;
+ float tauMax;
+ float deltaTauMax;
+ float alpha;
+ float gamma;
+ float phiMin;
+ float r0;
+
+ float * tausNow;
+ float * tausPrev;
+ float * deltaTausNow;
+ float * deltaTausPrev;
+ float * phisNow;
+ float * phisPrev;
+ float * vs;
+ float * rs;
+ char * categories;
+
+ } pitch2category_obj;
+
+ pitch2category_obj * pitch2category_construct_zero(const unsigned int nSeps, const float tauMin, const float tauMax, const float deltaTauMax, const float alpha, const float gamma, const float phiMin, const float r0);
+
+ void pitch2category_destroy(pitch2category_obj * obj);
+
+ void pitch2category_process(pitch2category_obj * obj, const pitches_obj * pitches, const tracks_obj * tracks, categories_obj * categories);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_STEER2DEMIXING
+#define __ODAS_SYSTEM_STEER2DEMIXING
+
+ /**
+ * \file steer2demixing.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+ #include <math.h>
+
+ #include <signal/demixing.h>
+ #include <signal/freq.h>
+ #include <signal/mask.h>
+ #include <signal/steer.h>
+ #include <signal/track.h>
+
+ #include <utils/cmatrix.h>
+
+ typedef struct steer2demixing_ds_obj {
+
+ unsigned int nSeps;
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+ float epsilon;
+
+ float * gains2;
+
+ } steer2demixing_ds_obj;
+
+ typedef struct steer2demixing_gss_obj {
+
+ unsigned int nSeps;
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+ float epsilon;
+
+ float mu;
+ float lambda;
+
+ cmatrix_obj * X;
+ cmatrix_obj * XH;
+
+ cmatrix_obj ** Y;
+ cmatrix_obj ** YH;
+ cmatrix_obj ** Ryy;
+ cmatrix_obj ** E;
+ cmatrix_obj ** A;
+ cmatrix_obj ** AH;
+ cmatrix_obj ** Wn;
+ cmatrix_obj ** Wnp1;
+ cmatrix_obj ** dJ1;
+ cmatrix_obj ** dJ2;
+
+ cmatrix_obj ** dJ1_EY;
+ cmatrix_obj ** dJ1_4EY;
+ cmatrix_obj ** dJ1_4EYXH;
+
+ cmatrix_obj ** dJ2_WA;
+ cmatrix_obj ** dJ2_WAmI;
+ cmatrix_obj ** dJ2_2WAmI;
+ cmatrix_obj ** dJ2_2WAmIAH;
+
+ cmatrix_obj ** alpha_dJ1;
+ cmatrix_obj ** alpha_dJ1_p_dJ2;
+ cmatrix_obj ** mu_alpha_dJ1_p_dJ2;
+ cmatrix_obj ** one_m_lambda_mu_Wn;
+ cmatrix_obj ** one_m_lambda_mu_Wn_m_mu_alpha_dJ1_p_dJ2;
+
+ } steer2demixing_gss_obj;
+
+ typedef struct steer2demixing_mvdr_obj {
+
+ } steer2demixing_mvdr_obj;
+
+
+ steer2demixing_ds_obj * steer2demixing_ds_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize, const float epsilon);
+
+ void steer2demixing_ds_destroy(steer2demixing_ds_obj * obj);
+
+ void steer2demixing_ds_process(steer2demixing_ds_obj * obj, const tracks_obj * tracks, const steers_obj * steers, const masks_obj * masks, demixings_obj * demixings);
+
+
+ steer2demixing_gss_obj * steer2demixing_gss_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize, const float mu, const float lambda, const float epsilon);
+
+ void steer2demixing_gss_destroy(steer2demixing_gss_obj * obj);
+
+ void steer2demixing_gss_process(steer2demixing_gss_obj * obj, const tracks_obj * tracksPrev, const tracks_obj * tracks, const steers_obj * steers, const masks_obj * masks, const freqs_obj * freqs, const demixings_obj * demixingsPrev, demixings_obj * demixings);
+
+
+ steer2demixing_mvdr_obj * steer2demixing_mvdr_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize, const float alpha, const float sigma, const unsigned int deltaK);
+
+ void steer2demixing_mvdr_destroy(steer2demixing_mvdr_obj * obj);
+
+ void steer2demixing_mvdr_process(steer2demixing_mvdr_obj * obj, const tracks_obj * tracks, const steers_obj * steers, const masks_obj * masks, const freqs_obj * freqs, demixings_obj * demixings);
+
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_TRACK2GAIN
+#define __ODAS_SYSTEM_TRACK2GAIN
+
+ /**
+ * \file track2gain.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <signal/beampattern.h>
+ #include <signal/track.h>
+ #include <signal/gain.h>
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
+
+ typedef struct track2gain_obj {
+
+ unsigned int nSeps;
+ unsigned int nChannels;
+ float * directions;
+ float * direction;
+
+ } track2gain_obj;
+
+ track2gain_obj * track2gain_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const float * directions, const float * direction);
+
+ void track2gain_destroy(track2gain_obj * obj);
+
+ void track2gain_process(track2gain_obj * obj, const beampatterns_obj * beampatterns_mics, const beampatterns_obj * beampatterns_spatialfilter, const tracks_obj * tracks, gains_obj * gains);
+
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_TRACK2STEER
+#define __ODAS_SYSTEM_TRACK2STEER
+
+ /**
+ * \file track2steer.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+ #include <math.h>
+
+ #include <signal/gain.h>
+ #include <signal/mask.h>
+ #include <signal/track.h>
+ #include <signal/steer.h>
+
+ typedef struct track2steer_obj {
+
+ unsigned int nSeps;
+ unsigned int nChannels;
+ unsigned int halfFrameSize;
+ float c;
+ unsigned int fS;
+ float * mics;
+
+ float * factor;
+ float speed;
+
+ } track2steer_obj;
+
+ track2steer_obj * track2steer_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize, const float c, const unsigned int fS, const float * mics);
+
+ void track2steer_destroy(track2steer_obj * obj);
+
+ void track2steer_process(track2steer_obj * obj, const tracks_obj * tracks, const gains_obj * gains, const masks_obj * masks, steers_obj * steers);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_XCORR2AIMG
+#define __ODAS_SYSTEM_XCORR2AIMG
+
+ /**
+ * \file xcorr2aimg.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+
+ #include <signal/tdoa.h>
+ #include <signal/index.h>
+ #include <signal/xcorr.h>
+ #include <signal/aimg.h>
+ #include <signal/spatialindex.h>
+
+ //! Update the states of the particle filter
+ typedef struct xcorr2aimg_obj {
+
+ unsigned int aimgSize; ///< Number of points scanned.
+
+ } xcorr2aimg_obj;
+
+ xcorr2aimg_obj * xcorr2aimg_construct_zero(const unsigned int aimgSize);
+
+ void xcorr2aimg_destroy(xcorr2aimg_obj * obj);
+
+ void xcorr2aimg_process(xcorr2aimg_obj * obj, const tdoas_obj * tdoas, const indexes_obj * indexes, const spatialindexes_obj * spatialindexes, const unsigned int iCoarse, const xcorrs_obj * xcorrs, aimg_obj * aimg);
+
+#endif
--- /dev/null
+#ifndef __ODAS_SYSTEM_XCORR
+#define __ODAS_SYSTEM_XCORR
+
+ /**
+ * \file xcorr2xcorr.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+
+ #include <signal/delta.h>
+ #include <signal/xcorr.h>
+ #include <signal/tdoa.h>
+ #include <signal/pair.h>
+
+ typedef struct xcorr2xcorr_obj {
+
+ unsigned int frameSize; ///< Number of samples per frame.
+
+ } xcorr2xcorr_obj;
+
+ xcorr2xcorr_obj * xcorr2xcorr_construct_zero(const unsigned int frameSize);
+
+ void xcorr2xcorr_destroy(xcorr2xcorr_obj * obj);
+
+ void xcorr2xcorr_process_max(xcorr2xcorr_obj * obj, const xcorrs_obj * xcorrs, const tdoas_obj * tdoas, const deltas_obj * deltas, const pairs_obj * pairs, xcorrs_obj * xcorrsMax);
+
+ void xcorr2xcorr_process_reset(xcorr2xcorr_obj * obj, const tdoas_obj * tdoas, const deltas_obj * deltas, const pairs_obj * pairs, const unsigned int iPoint, xcorrs_obj * xcorrs);
+
+#endif
--- /dev/null
+#ifndef __ODAS_UTILS_CMATRIX
+#define __ODAS_UTILS_CMATRIX
+
+ /**
+ * \file cmatrix.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <math.h>
+
+ typedef struct cmatrix_obj {
+
+ float * real;
+ float * imag;
+ unsigned int nRows;
+ unsigned int nCols;
+
+ } cmatrix_obj;
+
+ cmatrix_obj * cmatrix_construct_zero(const unsigned int nRows, const unsigned int nCols);
+
+ cmatrix_obj * cmatrix_construct_matrix(const cmatrix_obj * cmatrix);
+
+ void cmatrix_copy_zero(cmatrix_obj * obj);
+
+ void cmatrix_copy_cmatrix(cmatrix_obj * obj, const cmatrix_obj * cmatrix);
+
+ void cmatrix_destroy(cmatrix_obj * obj);
+
+ void cmatrix_transpose(cmatrix_obj * obj, const cmatrix_obj * src);
+
+ void cmatrix_hermitian(cmatrix_obj * obj, const cmatrix_obj * src);
+
+ void cmatrix_add(cmatrix_obj * obj, const cmatrix_obj * src1, const cmatrix_obj * src2);
+
+ void cmatrix_sub(cmatrix_obj * obj, const cmatrix_obj * src1, const cmatrix_obj * src2);
+
+ void cmatrix_mul(cmatrix_obj * obj, const cmatrix_obj * src1, const cmatrix_obj * src2);
+
+ void cmatrix_scale(cmatrix_obj * obj, const cmatrix_obj * src, const float scale);
+
+ void cmatrix_zero(cmatrix_obj * obj);
+
+ void cmatrix_printf(const cmatrix_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_UTILS_FFT
+#define __ODAS_UTILS_FFT
+
+ /**
+ * \file cmatrix.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <fftw3.h>
+ #include <stdlib.h>
+
+ //! FFT object.
+ typedef struct fft_obj {
+
+ unsigned int frameSize; ///< Frame size (in samples).
+ unsigned int halfFrameSize; ///< Half frame size (frame size divided by 2 plus 1).
+ fftwf_plan R2C; ///< FFTW plan for FFT from real to complex.
+ fftwf_plan C2R; ///< FFTW plan for FFT from complex to real.
+ float * realArray; ///< Array that holds all real values.
+ fftwf_complex * complexArray; ///< Array that holds all complex values.
+
+ } fft_obj;
+
+ /** Constructor. Initialize all fields to perform FFT.
+ \param size FFT size (in samples).
+ \return Pointer to the instantiated object.
+ */
+ fft_obj * fft_construct(const unsigned int size);
+
+ /** Destructor. Free memory.
+ \param obj Object to be destroyed.
+ */
+ void fft_destroy(fft_obj * obj);
+
+ /** Perform Fast Fourier Transform (real vector as input, complex vector as output).
+ \param obj Object used.
+ \param in Pointer to the real array used for input.
+ \param out Pointer to the complex array used for output.
+ */
+ void fft_r2c(fft_obj * obj, const float * in, float * out);
+
+ /** Perform Inverse Fast Fourier Transform (complex vector as input, real vector as output).
+ \param obj Object used.
+ \param in Pointer to the complex array used for input.
+ \param out Pointer to the real array used for output.
+ */
+ void fft_c2r(fft_obj * obj, const float * in, float * out);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_UTILS_FIFO
+#define __ODAS_UTILS_FIFO
+
+ /**
+ * \file fifo.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <pthread.h>
+ #include <semaphore.h>
+ #include <stdio.h>
+
+ typedef struct fifo_obj {
+
+ void ** array;
+ unsigned int nElements;
+ unsigned int nMaxElements;
+
+ pthread_mutex_t use;
+ sem_t push;
+ sem_t pop;
+
+ } fifo_obj;
+
+ fifo_obj * fifo_construct_zero(const unsigned int nMaxElements);
+
+ void fifo_destroy(fifo_obj * obj);
+
+ void fifo_push(fifo_obj * obj, void * element);
+
+ void * fifo_pop(fifo_obj * obj);
+
+ int fifo_nElements(fifo_obj * obj);
+
+ void fifo_printf(const fifo_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_UTILS_GAUSSIAN
+#define __ODAS_UTILS_GAUSSIAN
+
+ /**
+ * \file gaussian.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <math.h>
+
+ //! 1-D gaussian
+ typedef struct gaussian_1d_obj {
+
+ float weight; ///< Weight of the gaussian.
+ float mu_x; ///< Mean of the gaussian.
+ float sigma_x; ///< Standard deviation of the gaussian.
+ float scaleFactor; ///< Precomputed scale factor for the exponential function.
+
+ } gaussian_1d_obj;
+
+ //! 2-D gaussian
+ typedef struct gaussian_2d_obj {
+
+ float weight; ///< Weight of the gaussian.
+ float mu_x; ///< X-component of the mean of the gaussian.
+ float mu_y; ///< Y-component of the mean of the gaussian.
+ float sigma_x; ///< X-component of the standard deviation of the gaussian.
+ float sigma_y; ///< Y-component of the standard deviation of the gaussian.
+ float scaleFactor; ///< Precomputed scale factor for the exponential function.
+
+ } gaussian_2d_obj;
+
+ //! 3-D gaussian
+ typedef struct gaussian_3d_obj {
+
+ float weight; ///< Weight of the gaussian.
+ float mu_x; ///< X-component of the mean of the gaussian.
+ float mu_y; ///< Y-component of the mean of the gaussian.
+ float mu_z; ///< Z-component of the mean of the gaussian.
+ float sigma_x; ///< X-component of the standard deviation of the gaussian.
+ float sigma_y; ///< Y-component of the standard deviation of the gaussian.
+ float sigma_z; ///< Z-component of the standard deviation of the gaussian.
+ float scaleFactor; ///< Precomputed scale factor for the exponential function.
+
+ } gaussian_3d_obj;
+
+ //! 1-D gaussian mixture model
+ typedef struct gaussians_1d_obj {
+
+ unsigned int nSignals; ///< Number of gaussians.
+ gaussian_1d_obj ** array; ///< List of gaussians.
+
+ } gaussians_1d_obj;
+
+ //! 2-D gaussian mixture model
+ typedef struct gaussians_2d_obj {
+
+ unsigned int nSignals; ///< Number of gaussians.
+ gaussian_2d_obj ** array; ///< List of gaussians.
+
+ } gaussians_2d_obj;
+
+ //! 3-D gaussian mixture model
+ typedef struct gaussians_3d_obj {
+
+ unsigned int nSignals; ///< Number of gaussians.
+ gaussian_3d_obj ** array; ///< List of gaussians.
+
+ } gaussians_3d_obj;
+
+ /** Constructor. Initialize all fields to zero (weight to 1, mean to 0, standard deviation to 1).
+ \return Pointer to the instantiated object.
+ */
+ gaussian_1d_obj * gaussian_1d_construct_zero(void);
+
+ /** Constructor. Initialize all fields to zero (weight to 1, means to 0, standard deviations to 1).
+ \return Pointer to the instantiated object.
+ */
+ gaussian_2d_obj * gaussian_2d_construct_zero(void);
+
+ /** Constructor. Initialize all fields to zero (weight to 1, means to 0, standard deviations to 1).
+ \return Pointer to the instantiated object.
+ */
+ gaussian_3d_obj * gaussian_3d_construct_zero(void);
+
+ /** Constructor. Initialize all fields to weight, mu and sigma.
+ \param weight Weight value.
+ \param mu_x Mean value.
+ \param sigma_x Standard deviation value.
+ \return Pointer to the instantiated object.
+ */
+ gaussian_1d_obj * gaussian_1d_construct_weightmusigma(const float weight, const float mu_x, const float sigma_x);
+
+ /** Constructor. Initialize all fields to weight, mus and sigmas.
+ \param weight Weight value.
+ \param mu_x X-coordinate of the mean.
+ \param mu_y Y-coordinate of the mean.
+ \param sigma_x X-coordinate of the standard deviation.
+ \param sigma_y Y-coordinate of the standard deviation.
+ \return Pointer to the instantiated object.
+ */
+ gaussian_2d_obj * gaussian_2d_construct_weightmusigma(const float weight, const float mu_x, const float mu_y, const float sigma_x, const float sigma_y);
+
+ /** Constructor. Initialize all fields to weight, mus and sigmas.
+ \param weight Weight value.
+ \param mu_x X-coordinate of the mean.
+ \param mu_y Y-coordinate of the mean.
+ \param mu_z Z-coordinate of the mean.
+ \param sigma_x X-coordinate of the standard deviation.
+ \param sigma_y Y-coordinate of the standard deviation.
+ \param sigma_z Z-coordinate of the standard deviation.
+ \return Pointer to the instantiated object.
+ */
+ gaussian_3d_obj * gaussian_3d_construct_weightmusigma(const float weight, const float mu_x, const float mu_y, const float mu_z, const float sigma_x, const float sigma_y, const float sigma_z);
+
+ /** Constructor. Clone the object.
+ \param gaussian Object to cloned.
+ \return Pointer to the instantiated object.
+ */
+ gaussian_1d_obj * gaussian_1d_construct_gaussian(const gaussian_1d_obj * gaussian);
+
+ /** Constructor. Clone the object.
+ \param gaussian Object to cloned.
+ \return Pointer to the instantiated object.
+ */
+ gaussian_2d_obj * gaussian_2d_construct_gaussian(const gaussian_2d_obj * gaussian);
+
+ /** Constructor. Clone the object.
+ \param gaussian Object to cloned.
+ \return Pointer to the instantiated object.
+ */
+ gaussian_3d_obj * gaussian_3d_construct_gaussian(const gaussian_3d_obj * gaussian);
+
+ /** Destructor. Free memory.
+ \param obj Object to be destroyed.
+ */
+ void gaussian_1d_destroy(gaussian_1d_obj * obj);
+
+ /** Destructor. Free memory.
+ \param obj Object to be destroyed.
+ */
+ void gaussian_2d_destroy(gaussian_2d_obj * obj);
+
+ /** Destructor. Free memory.
+ \param obj Object to be destroyed.
+ */
+ void gaussian_3d_destroy(gaussian_3d_obj * obj);
+
+ /** Evaluate the gaussian at x.
+ \param obj Object to be used.
+ \param x Value of x.
+ \return Value of the gaussian.
+ */
+ float gaussian_1d_eval(const gaussian_1d_obj * obj, const float x);
+
+ /** Evaluate the gaussian at x and y.
+ \param obj Object to be used.
+ \param x Value of x.
+ \param y Value of y.
+ \return Value of the gaussian.
+ */
+ float gaussian_2d_eval(const gaussian_2d_obj * obj, const float x, const float y);
+
+ /** Evaluate the gaussian at x, y and z.
+ \param obj Object to be used.
+ \param x Value of x.
+ \param y Value of y.
+ \param z Value of z.
+ \return Value of the gaussian.
+ */
+ float gaussian_3d_eval(const gaussian_3d_obj * obj, const float x, const float y, const float z);
+
+ /** Print the content of the gaussian.
+ \param obj Object to be used.
+ */
+ void gaussian_1d_printf(const gaussian_1d_obj * obj);
+
+ /** Print the content of the gaussian.
+ \param obj Object to be used.
+ */
+ void gaussian_2d_printf(const gaussian_2d_obj * obj);
+
+ /** Print the content of the gaussian.
+ \param obj Object to be used.
+ */
+ void gaussian_3d_printf(const gaussian_3d_obj * obj);
+
+ /** Constructor. Fill the array of objects with null pointers.
+ \param nSignals Number of gaussians.
+ \return Pointer to the instantiated object.
+ */
+ gaussians_1d_obj * gaussians_1d_construct_null(const unsigned int nSignals);
+
+ /** Constructor. Fill the array of objects with null pointers.
+ \param nSignals Number of gaussians.
+ \return Pointer to the instantiated object.
+ */
+ gaussians_2d_obj * gaussians_2d_construct_null(const unsigned int nSignals);
+
+ /** Constructor. Fill the array of objects with null pointers.
+ \param nSignals Number of gaussians.
+ \return Pointer to the instantiated object.
+ */
+ gaussians_3d_obj * gaussians_3d_construct_null(const unsigned int nSignals);
+
+ /** Constructor. Clone the gaussians.
+ \param gaussians Object to be cloned.
+ \return Pointer to the instantiated object.
+ */
+ gaussians_1d_obj * gaussians_1d_construct_gaussians(const gaussians_1d_obj * gaussians);
+
+ /** Constructor. Clone the gaussians.
+ \param gaussians Object to be cloned.
+ \return Pointer to the instantiated object.
+ */
+ gaussians_2d_obj * gaussians_2d_construct_gaussians(const gaussians_2d_obj * gaussians);
+
+ /** Constructor. Clone the gaussians.
+ \param gaussians Object to be cloned.
+ \return Pointer to the instantiated object.
+ */
+ gaussians_3d_obj * gaussians_3d_construct_gaussians(const gaussians_3d_obj * gaussians);
+
+ /** Destructor. Free memory.
+ \param obj Object to be destroyed.
+ */
+ void gaussians_1d_destroy(gaussians_1d_obj * obj);
+
+ /** Destructor. Free memory.
+ \param obj Object to be destroyed.
+ */
+ void gaussians_2d_destroy(gaussians_2d_obj * obj);
+
+ /** Destructor. Free memory.
+ \param obj Object to be destroyed.
+ */
+ void gaussians_3d_destroy(gaussians_3d_obj * obj);
+
+ /** Evaluate the gaussian mixture model (GMM) at x.
+ \param obj Object to be used.
+ \param x Value of x.
+ \return Value of the GMM.
+ */
+ float gaussians_1d_eval(const gaussians_1d_obj * obj, const float x);
+
+ /** Evaluate the gaussian mixture model (GMM) at x and y.
+ \param obj Object to be used.
+ \param x Value of x.
+ \param y Value of y.
+ \return Value of the GMM.
+ */
+ float gaussians_2d_eval(const gaussians_2d_obj * obj, const float x, const float y);
+
+ /** Evaluate the gaussian mixture model (GMM) at x, y and z.
+ \param obj Object to be used.
+ \param x Value of x.
+ \param y Value of y.
+ \param z Value of z.
+ \return Value of the GMM.
+ */
+ float gaussians_3d_eval(const gaussians_3d_obj * obj, const float x, const float y, const float z);
+
+ /** Print the content of the gaussian mixture model (GMM).
+ \param obj Object to be used.
+ */
+ void gaussians_1d_printf(const gaussians_1d_obj * obj);
+
+ /** Print the content of the gaussian mixture model (GMM).
+ \param obj Object to be used.
+ */
+ void gaussians_2d_printf(const gaussians_2d_obj * obj);
+
+ /** Print the content of the gaussian mixture model (GMM).
+ \param obj Object to be used.
+ */
+ void gaussians_3d_printf(const gaussians_3d_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_UTILS_GAUSSJORDAN
+#define __ODAS_UTILS_GAUSSJORDAN
+
+ /**
+ * \file gaussjordan.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
+
+ typedef struct gaussjordan_obj {
+
+ unsigned int nRowsCols;
+ float * array;
+ float epsilon;
+
+ } gaussjordan_obj;
+
+ gaussjordan_obj * gaussjordan_construct_zero(const unsigned int nRowsCols, const float epsilon);
+
+ void gaussjordan_destroy(gaussjordan_obj * obj);
+
+ void gaussjordan_process(gaussjordan_obj * obj, const float * src, float * dest);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_UTILS_INVERSE
+#define __ODAS_UTILS_INVERSE
+
+ /**
+ * \file inverse.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include "gaussjordan.h"
+ #include "matrix.h"
+ #include "cmatrix.h"
+
+ typedef struct inverse_real_obj {
+
+ unsigned int nRowsCols;
+
+ gaussjordan_obj * gaussjordan;
+
+ } inverse_real_obj;
+
+ typedef struct inverse_complex_obj {
+
+ unsigned int nRowsCols;
+
+ gaussjordan_obj * gaussjordan;
+
+ matrix_obj * A;
+ matrix_obj * B;
+
+ matrix_obj * Ainv;
+ matrix_obj * Binv;
+
+ matrix_obj * BAinv;
+ matrix_obj * ABinv;
+
+ matrix_obj * BAinvB;
+ matrix_obj * ABinvA;
+
+ matrix_obj * ApBAinvB;
+ matrix_obj * BpABinvA;
+
+ matrix_obj * ApBAinvB_inv;
+ matrix_obj * BpABinvA_inv;
+
+ matrix_obj * mBpABinvA_inv;
+
+ } inverse_complex_obj;
+
+ inverse_real_obj * inverse_real_construct_zero(const unsigned int nRowsCols, const float epsilon);
+
+ void inverse_real_destroy(inverse_real_obj * obj);
+
+ void inverse_real_process(inverse_real_obj * obj, const matrix_obj * src, matrix_obj * dest);
+
+ inverse_complex_obj * inverse_complex_construct_zero(const unsigned int nRowsCols, const float epsilon);
+
+ void inverse_complex_destroy(inverse_complex_obj * obj);
+
+ void inverse_complex_process(inverse_complex_obj * obj, const cmatrix_obj * src, cmatrix_obj * dest);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_UTILS_MATRIX
+#define __ODAS_UTILS_MATRIX
+
+ /**
+ * \file matrix.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <math.h>
+
+ //! Matrix
+ typedef struct matrix_obj {
+
+ float * array; ///< Array of elements in the matrix.
+ unsigned int nRows; ///< Number of rows.
+ unsigned int nCols; ///< Number of columns.
+
+ } matrix_obj;
+
+ /** Constructor. Initialize all elements to zero in a matrix nRows x nCols.
+ \param nRows Number of rows.
+ \param nCols Number of columns.
+ \return Pointer to the instantiated object.
+ */
+ matrix_obj * matrix_construct_zero(const unsigned int nRows, const unsigned int nCols);
+
+ /** Constructor. Clone the object.
+ \param matrix Object to be cloned.
+ \return Pointer to the instantiated object.
+ */
+ matrix_obj * matrix_construct_matrix(const matrix_obj * matrix);
+
+ /** Set elements to 0.
+ \param obj Object to be used.
+ */
+ void matrix_copy_zero(matrix_obj * obj);
+
+ /** Set fields to the field values of the model object. No memory allocated.
+ \param matrix Object to be copied.
+ \param obj Object to be modified.
+ */
+ void matrix_copy_matrix(matrix_obj * obj, const matrix_obj * matrix);
+
+ /** Destructor. Free memory.
+ \param obj Object to be destroyed.
+ */
+ void matrix_destroy(matrix_obj * obj);
+
+ /** Compute the matrix transpose.
+ \param src Matrix to be transpose.
+ \param obj Transposed matrix.
+ */
+ void matrix_transpose(matrix_obj * obj, const matrix_obj * src);
+
+ /** Add two matrices.
+ \param src1 First matrix to be added.
+ \param src2 Second matrix to be added.
+ \param obj Result of the addition.
+ */
+ void matrix_add(matrix_obj * obj, const matrix_obj * src1, const matrix_obj * src2);
+
+ /** Subtract two matrices.
+ \param src1 Matrix to be subtracted from.
+ \param src2 Matrix to subtract.
+ \param obj Result of the subtraction.
+ */
+ void matrix_sub(matrix_obj * obj, const matrix_obj * src1, const matrix_obj * src2);
+
+ /** Multiply two matrices.
+ \param src1 First matrix to be multiplied.
+ \param src2 Second matrix to be multiplied.
+ \param obj Result of the multiplication.
+ */
+ void matrix_mul(matrix_obj * obj, const matrix_obj * src1, const matrix_obj * src2);
+
+ /** Inverse a matrix.
+ \param src Matrix to be inverted.
+ \param obj Inverted matrix.
+ */
+ void matrix_inv(matrix_obj * obj, const matrix_obj * src);
+
+ /** Compute the determinant.
+ \param obj Matrix which determinant is computed.
+ \return Determinant value.
+ */
+ float matrix_det(const matrix_obj * obj);
+
+ /** Multiply a matrix by a scalar.
+ \param src Matrix to be scaled.
+ \param scale Scaling factor.
+ \param obj Scaled matrix.
+ */
+ void matrix_scale(matrix_obj * obj, const matrix_obj * src, const float scale);
+
+ /** Print the content of the matrix.
+ \param obj Object to be used.
+ */
+ void matrix_printf(const matrix_obj * obj);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_UTILS_PCM
+#define __ODAS_UTILS_PCM
+
+ /**
+ * \file pcm.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <math.h>
+ #include <limits.h>
+
+ float pcm_signedXXbits2normalized(const char * bytes, const unsigned int nBytes);
+
+ void pcm_signedXXbits2json(const char * bytes, const unsigned int nBytes, char * json);
+
+ void pcm_normalized2signedXXbits(const float sample, const unsigned int nBytes, char * bytes);
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_UTILS_RANDOM
+#define __ODAS_UTILS_RANDOM
+
+ /**
+ * \file random.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <time.h>
+ #include <math.h>
+
+ //! Random number generator
+ typedef struct random_obj {
+
+ unsigned int N; ///< Number of elements in the space
+ unsigned int I; ///< Number of iterations to perform a binary search
+ float * pdf; ///< Probability density function (probability mass function)
+ float * cdf; ///< Cumulative density function
+
+ } random_obj;
+
+ //! Standard normal number generator
+ typedef struct normal_obj {
+
+ double epsilon; ///< Small value to perform the Box-Muller transform.
+
+ } normal_obj;
+
+ //! Standard normal number generator offline
+ typedef struct normaloff_obj {
+
+ unsigned int N; ///< Number of samples.
+ float * values; ///< Normally distributed samples.
+
+ } normaloff_obj;
+
+ /** Constructor. Initialize all elements to zero.
+ \param N Number of elements in the space.
+ \return Pointer to the instantiated object.
+ */
+ random_obj * random_construct_zero(const unsigned int N);
+
+ /** Destructor. Free memory.
+ \param obj Object to be destroyed.
+ */
+ void random_destroy(random_obj * obj);
+
+ /** Set the PDF.
+ \param pdf Array that contains the PDF values.
+ \param obj Object to be modified.
+ */
+ void random_pdf(random_obj * obj, const float * pdf);
+
+ /** Pick element randomly according to the PDF, and return the index.
+ \param nSamples Number of elements to pick.
+ \param indexes Array that contains the returned indexes.
+ \param obj Object to be used.
+ */
+ void random_generate(const random_obj * obj, const unsigned int nSamples, unsigned int * indexes);
+
+ /** Constructor.
+ \param epsilon Small value to perform the Box-Muller transform.
+ \return Pointer of the instantiated object.
+ */
+ normal_obj * normal_construct_zero(const double epsilon);
+
+ /** Destructor. Free memory.
+ \param obj Object to be destroyed.
+ */
+ void normal_destroy(normal_obj * obj);
+
+ /** Generate a random number according to a standard normal distribution.
+ \param nSamples Number of random numbers to generate.
+ \param values Array that contains the generated random numbers.
+ \param obj Object to be used.
+ */
+ void normal_generate(const normal_obj * obj, const unsigned int nSamples, float * values);
+
+ /** Constructor.
+ \param epsilon Small value to perform the Box-Muller transform.
+ \param N Number of random numbers generated offline and stored.
+ \return Pointer of the instantiated object.
+ */
+ normaloff_obj * normaloff_construct_rnd(const double epsilon, const unsigned int N);
+
+ /** Destructor. Free memory.
+ \param obj Object to be destroyed.
+ */
+ void normaloff_destroy(normaloff_obj * obj);
+
+ /** Generate a random number according to a standard normal distribution.
+ \param nSamples Number of random numbers to generate.
+ \param values Array that contains the generated random numbers.
+ \param obj Object to be used.
+ */
+ void normaloff_generate(const normaloff_obj * obj, const unsigned int nSamples, float * values);
+
+
+#endif
\ No newline at end of file
--- /dev/null
+#ifndef __ODAS_UTILS_TRANSCENDENTAL
+#define __ODAS_UTILS_TRANSCENDENTAL
+
+ /**
+ * \file transcendental.h
+ * \author François Grondin <francois.grondin2@usherbrooke.ca>
+ * \version 2.0
+ * \date 2018-03-18
+ * \copyright
+ *
+ * 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.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+ #include <math.h>
+
+ typedef struct transcendental_obj {
+
+ float maxValue;
+ float minValue;
+ float interval;
+
+ float * array;
+ unsigned int nElements;
+
+ } transcendental_obj;
+
+ transcendental_obj * transcendental_construct_zero(const float minValue, const float maxValue, const unsigned int nElements);
+
+ void transcendental_destroy(transcendental_obj * obj);
+
+ float transcendental_process(const transcendental_obj * obj, const float value);
+
+#endif
\ No newline at end of file
*
*/
- #include "acon_categories.h"
+ #include <aconnector/acon_categories.h>
acon_categories_obj * acon_categories_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_categories_cfg * msg_categories_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ACONNECTOR_CATEGORIES
-#define __ODAS_ACONNECTOR_CATEGORIES
-
- /**
- * \file acon_categories.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../connector/con_categories.h"
- #include "../amessage/amsg_categories.h"
- #include "../message/msg_categories.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct acon_categories_obj {
-
- amsg_categories_obj * in;
- amsg_categories_obj ** outs;
- con_categories_obj * con_categories;
- thread_obj * thread;
-
- } acon_categories_obj;
-
- acon_categories_obj * acon_categories_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_categories_cfg * msg_categories_config);
-
- void acon_categories_destroy(acon_categories_obj * obj);
-
- void * acon_categories_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "acon_hops.h"
+ #include <aconnector/acon_hops.h>
acon_hops_obj * acon_hops_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_hops_cfg * msg_hops_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ACONNECTOR_HOPS
-#define __ODAS_ACONNECTOR_HOPS
-
- /**
- * \file acon_hops.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../connector/con_hops.h"
- #include "../amessage/amsg_hops.h"
- #include "../message/msg_hops.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct acon_hops_obj {
-
- amsg_hops_obj * in;
- amsg_hops_obj ** outs;
- con_hops_obj * con_hops;
- thread_obj * thread;
-
- } acon_hops_obj;
-
- acon_hops_obj * acon_hops_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_hops_cfg * msg_hops_config);
-
- void acon_hops_destroy(acon_hops_obj * obj);
-
- void * acon_hops_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "acon_pots.h"
+ #include <aconnector/acon_pots.h>
acon_pots_obj * acon_pots_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_pots_cfg * msg_pots_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ACONNECTOR_POTS
-#define __ODAS_ACONNECTOR_POTS
-
- /**
- * \file acon_pots.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../connector/con_pots.h"
- #include "../amessage/amsg_pots.h"
- #include "../message/msg_pots.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct acon_pots_obj {
-
- amsg_pots_obj * in;
- amsg_pots_obj ** outs;
- con_pots_obj * con_pots;
- thread_obj * thread;
-
- } acon_pots_obj;
-
- acon_pots_obj * acon_pots_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_pots_cfg * msg_pots_config);
-
- void acon_pots_destroy(acon_pots_obj * obj);
-
- void * acon_pots_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "acon_powers.h"
+ #include <aconnector/acon_powers.h>
acon_powers_obj * acon_powers_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_powers_cfg * msg_powers_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ACONNECTOR_POWERS
-#define __ODAS_ACONNECTOR_POWERS
-
- /**
- * \file acon_powers.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../connector/con_powers.h"
- #include "../amessage/amsg_powers.h"
- #include "../message/msg_powers.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct acon_powers_obj {
-
- amsg_powers_obj * in;
- amsg_powers_obj ** outs;
- con_powers_obj * con_powers;
- thread_obj * thread;
-
- } acon_powers_obj;
-
- acon_powers_obj * acon_powers_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_powers_cfg * msg_powers_config);
-
- void acon_powers_destroy(acon_powers_obj * obj);
-
- void * acon_powers_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "acon_spectra.h"
+ #include <aconnector/acon_spectra.h>
acon_spectra_obj * acon_spectra_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_spectra_cfg * msg_spectra_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ACONNECTOR_SPECTRA
-#define __ODAS_ACONNECTOR_SPECTRA
-
- /**
- * \file acon_spectra.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../connector/con_spectra.h"
- #include "../amessage/amsg_spectra.h"
- #include "../message/msg_spectra.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct acon_spectra_obj {
-
- amsg_spectra_obj * in;
- amsg_spectra_obj ** outs;
- con_spectra_obj * con_spectra;
- thread_obj * thread;
-
- } acon_spectra_obj;
-
- acon_spectra_obj * acon_spectra_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_spectra_cfg * msg_spectra_config);
-
- void acon_spectra_destroy(acon_spectra_obj * obj);
-
- void * acon_spectra_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "acon_targets.h"
+ #include <aconnector/acon_targets.h>
acon_targets_obj * acon_targets_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_targets_cfg * msg_targets_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ACONNECTOR_TARGETS
-#define __ODAS_ACONNECTOR_TARGETS
-
- /**
- * \file acon_targets.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../connector/con_targets.h"
- #include "../amessage/amsg_targets.h"
- #include "../message/msg_targets.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct acon_targets_obj {
-
- amsg_targets_obj * in;
- amsg_targets_obj ** outs;
- con_targets_obj * con_targets;
- thread_obj * thread;
-
- } acon_targets_obj;
-
- acon_targets_obj * acon_targets_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_targets_cfg * msg_targets_config);
-
- void acon_targets_destroy(acon_targets_obj * obj);
-
- void * acon_targets_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "acon_tracks.h"
+ #include <aconnector/acon_tracks.h>
acon_tracks_obj * acon_tracks_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_tracks_cfg * msg_tracks_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ACONNECTOR_TRACKS
-#define __ODAS_ACONNECTOR_TRACKS
-
- /**
- * \file acon_tracks.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../connector/con_tracks.h"
- #include "../amessage/amsg_tracks.h"
- #include "../message/msg_tracks.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct acon_tracks_obj {
-
- amsg_tracks_obj * in;
- amsg_tracks_obj ** outs;
- con_tracks_obj * con_tracks;
- thread_obj * thread;
-
- } acon_tracks_obj;
-
- acon_tracks_obj * acon_tracks_construct(const unsigned int nOuts, const unsigned int nMessages, const msg_tracks_cfg * msg_tracks_config);
-
- void acon_tracks_destroy(acon_tracks_obj * obj);
-
- void * acon_tracks_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "ainj_targets.h"
+ #include <ainjector/ainj_targets.h>
ainj_targets_obj * ainj_targets_construct(const inj_targets_cfg * inj_targets_config, const msg_hops_cfg * msg_hops_config, const msg_targets_cfg * msg_targets_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AINJECTOR_TARGETS
-#define __ODAS_AINJECTOR_TARGETS
-
- /**
- * \file ainj_targets.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../injector/inj_targets.h"
- #include "../amessage/amsg_hops.h"
- #include "../amessage/amsg_targets.h"
- #include "../general/thread.h"
-
- typedef struct ainj_targets_obj {
-
- inj_targets_obj * inj_targets;
- amsg_hops_obj * in;
- amsg_targets_obj * out;
- thread_obj * thread;
-
- } ainj_targets_obj;
-
- ainj_targets_obj * ainj_targets_construct(const inj_targets_cfg * inj_targets_config, const msg_hops_cfg * msg_hops_config, const msg_targets_cfg * msg_targets_config);
-
- void ainj_targets_destroy(ainj_targets_obj * obj);
-
- void ainj_targets_connect(ainj_targets_obj * obj, amsg_hops_obj * in, amsg_targets_obj * out);
-
- void ainj_targets_disconnect(ainj_targets_obj * obj);
-
- void * ainj_targets_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "amsg_categories.h"
+ #include <amessage/amsg_categories.h>
amsg_categories_obj * amsg_categories_construct(const unsigned int nMessages, const msg_categories_cfg * msg_categories_config) {
+++ /dev/null
-#ifndef __ODAS_AMESSAGE_CATEGORIES
-#define __ODAS_AMESSAGE_CATEGORIES
-
- /**
- * \file amsg_categories.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../message/msg_categories.h"
- #include "../utils/fifo.h"
-
- typedef struct amsg_categories_obj {
-
- unsigned int nMessages;
- fifo_obj * filled;
- fifo_obj * empty;
-
- } amsg_categories_obj;
-
- amsg_categories_obj * amsg_categories_construct(const unsigned int nMessages, const msg_categories_cfg * msg_categories_config);
-
- void amsg_categories_destroy(amsg_categories_obj * obj);
-
- msg_categories_obj * amsg_categories_filled_pop(amsg_categories_obj * obj);
-
- void amsg_categories_filled_push(amsg_categories_obj * obj, msg_categories_obj * msg_categories);
-
- msg_categories_obj * amsg_categories_empty_pop(amsg_categories_obj * obj);
-
- void amsg_categories_empty_push(amsg_categories_obj * obj, msg_categories_obj * msg_categories);
-
-#endif
\ No newline at end of file
*
*/
- #include "amsg_hops.h"
+ #include <amessage/amsg_hops.h>
amsg_hops_obj * amsg_hops_construct(const unsigned int nMessages, const msg_hops_cfg * msg_hops_config) {
fifo_push(obj->empty, (void *) msg_hops);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMESSAGE_HOPS
-#define __ODAS_AMESSAGE_HOPS
-
- /**
- * \file amsg_hops.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../message/msg_hops.h"
- #include "../utils/fifo.h"
-
- typedef struct amsg_hops_obj {
-
- unsigned int nMessages;
- fifo_obj * filled;
- fifo_obj * empty;
-
- } amsg_hops_obj;
-
- amsg_hops_obj * amsg_hops_construct(const unsigned int nMessages, const msg_hops_cfg * msg_hops_config);
-
- void amsg_hops_destroy(amsg_hops_obj * obj);
-
- msg_hops_obj * amsg_hops_filled_pop(amsg_hops_obj * obj);
-
- void amsg_hops_filled_push(amsg_hops_obj * obj, msg_hops_obj * msg_hops);
-
- msg_hops_obj * amsg_hops_empty_pop(amsg_hops_obj * obj);
-
- void amsg_hops_empty_push(amsg_hops_obj * obj, msg_hops_obj * msg_hops);
-
-#endif
\ No newline at end of file
*
*/
- #include "amsg_pots.h"
+ #include <amessage/amsg_pots.h>
amsg_pots_obj * amsg_pots_construct(const unsigned int nMessages, const msg_pots_cfg * msg_pots_config) {
fifo_push(obj->empty, (void *) msg_pots);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMESSAGE_POTS
-#define __ODAS_AMESSAGE_POTS
-
- /**
- * \file amsg_pots.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../message/msg_pots.h"
- #include "../utils/fifo.h"
-
- typedef struct amsg_pots_obj {
-
- unsigned int nMessages;
- fifo_obj * filled;
- fifo_obj * empty;
-
- } amsg_pots_obj;
-
- amsg_pots_obj * amsg_pots_construct(const unsigned int nMessages, const msg_pots_cfg * msg_pots_config);
-
- void amsg_pots_destroy(amsg_pots_obj * obj);
-
- msg_pots_obj * amsg_pots_filled_pop(amsg_pots_obj * obj);
-
- void amsg_pots_filled_push(amsg_pots_obj * obj, msg_pots_obj * msg_pots);
-
- msg_pots_obj * amsg_pots_empty_pop(amsg_pots_obj * obj);
-
- void amsg_pots_empty_push(amsg_pots_obj * obj, msg_pots_obj * msg_pots);
-
-#endif
\ No newline at end of file
*
*/
- #include "amsg_powers.h"
+ #include <amessage/amsg_powers.h>
amsg_powers_obj * amsg_powers_construct(const unsigned int nMessages, const msg_powers_cfg * msg_powers_config) {
fifo_push(obj->empty, (void *) msg_powers);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMESSAGE_POWERS
-#define __ODAS_AMESSAGE_POWERS
-
- /**
- * \file amsg_powers.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../message/msg_powers.h"
- #include "../utils/fifo.h"
-
- typedef struct amsg_powers_obj {
-
- unsigned int nMessages;
- fifo_obj * filled;
- fifo_obj * empty;
-
- } amsg_powers_obj;
-
- amsg_powers_obj * amsg_powers_construct(const unsigned int nMessages, const msg_powers_cfg * msg_powers_config);
-
- void amsg_powers_destroy(amsg_powers_obj * obj);
-
- msg_powers_obj * amsg_powers_filled_pop(amsg_powers_obj * obj);
-
- void amsg_powers_filled_push(amsg_powers_obj * obj, msg_powers_obj * msg_powers);
-
- msg_powers_obj * amsg_powers_empty_pop(amsg_powers_obj * obj);
-
- void amsg_powers_empty_push(amsg_powers_obj * obj, msg_powers_obj * msg_powers);
-
-#endif
\ No newline at end of file
*
*/
- #include "amsg_spectra.h"
+ #include <amessage/amsg_spectra.h>
amsg_spectra_obj * amsg_spectra_construct(const unsigned int nMessages, const msg_spectra_cfg * msg_spectra_config) {
fifo_push(obj->empty, (void *) msg_spectra);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMESSAGE_SPECTRA
-#define __ODAS_AMESSAGE_SPECTRA
-
- /**
- * \file amsg_spectra.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../message/msg_spectra.h"
- #include "../utils/fifo.h"
-
- typedef struct amsg_spectra_obj {
-
- unsigned int nMessages;
- fifo_obj * filled;
- fifo_obj * empty;
-
- } amsg_spectra_obj;
-
- amsg_spectra_obj * amsg_spectra_construct(const unsigned int nMessages, const msg_spectra_cfg * msg_spectra_config);
-
- void amsg_spectra_destroy(amsg_spectra_obj * obj);
-
- msg_spectra_obj * amsg_spectra_filled_pop(amsg_spectra_obj * obj);
-
- void amsg_spectra_filled_push(amsg_spectra_obj * obj, msg_spectra_obj * msg_spectra);
-
- msg_spectra_obj * amsg_spectra_empty_pop(amsg_spectra_obj * obj);
-
- void amsg_spectra_empty_push(amsg_spectra_obj * obj, msg_spectra_obj * msg_spectra);
-
-#endif
\ No newline at end of file
*
*/
- #include "amsg_targets.h"
+ #include <amessage/amsg_targets.h>
amsg_targets_obj * amsg_targets_construct(const unsigned int nMessages, const msg_targets_cfg * msg_targets_config) {
fifo_push(obj->empty, (void *) msg_targets);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMESSAGE_TARGETS
-#define __ODAS_AMESSAGE_TARGETS
-
- /**
- * \file amsg_targets.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../message/msg_targets.h"
- #include "../utils/fifo.h"
-
- typedef struct amsg_targets_obj {
-
- unsigned int nMessages;
- fifo_obj * filled;
- fifo_obj * empty;
-
- } amsg_targets_obj;
-
- amsg_targets_obj * amsg_targets_construct(const unsigned int nMessages, const msg_targets_cfg * msg_targets_config);
-
- void amsg_targets_destroy(amsg_targets_obj * obj);
-
- msg_targets_obj * amsg_targets_filled_pop(amsg_targets_obj * obj);
-
- void amsg_targets_filled_push(amsg_targets_obj * obj, msg_targets_obj * msg_targets);
-
- msg_targets_obj * amsg_targets_empty_pop(amsg_targets_obj * obj);
-
- void amsg_targets_empty_push(amsg_targets_obj * obj, msg_targets_obj * msg_targets);
-
-#endif
\ No newline at end of file
*
*/
- #include "amsg_tracks.h"
+ #include <amessage/amsg_tracks.h>
amsg_tracks_obj * amsg_tracks_construct(const unsigned int nMessages, const msg_tracks_cfg * msg_tracks_config) {
fifo_push(obj->empty, (void *) msg_tracks);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMESSAGE_TRACKS
-#define __ODAS_AMESSAGE_TRACKS
-
- /**
- * \file amsg_tracks.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../message/msg_tracks.h"
- #include "../utils/fifo.h"
-
- typedef struct amsg_tracks_obj {
-
- unsigned int nMessages;
- fifo_obj * filled;
- fifo_obj * empty;
-
- } amsg_tracks_obj;
-
- amsg_tracks_obj * amsg_tracks_construct(const unsigned int nMessages, const msg_tracks_cfg * msg_tracks_config);
-
- void amsg_tracks_destroy(amsg_tracks_obj * obj);
-
- msg_tracks_obj * amsg_tracks_filled_pop(amsg_tracks_obj * obj);
-
- void amsg_tracks_filled_push(amsg_tracks_obj * obj, msg_tracks_obj * msg_tracks);
-
- msg_tracks_obj * amsg_tracks_empty_pop(amsg_tracks_obj * obj);
-
- void amsg_tracks_empty_push(amsg_tracks_obj * obj, msg_tracks_obj * msg_tracks);
-
-#endif
\ No newline at end of file
*
*/
- #include "amod_classify.h"
+ #include <amodule/amod_classify.h>
amod_classify_obj * amod_classify_construct(const mod_classify_cfg * mod_classify_config, const msg_hops_cfg * msg_hops_config, const msg_tracks_cfg * msg_tracks_config, const msg_categories_cfg * msg_categories_config) {
+++ /dev/null
-#ifndef __ODAS_AMODULE_CLASSIFY
-#define __ODAS_AMODULE_CLASSIFY
-
- /**
- * \file amod_classify.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../module/mod_classify.h"
- #include "../amessage/amsg_hops.h"
- #include "../amessage/amsg_tracks.h"
- #include "../amessage/amsg_categories.h"
- #include "../general/thread.h"
-
- typedef struct amod_classify_obj {
-
- mod_classify_obj * mod_classify;
- amsg_hops_obj * in1;
- amsg_tracks_obj * in2;
- amsg_categories_obj * out;
- thread_obj * thread;
-
- } amod_classify_obj;
-
- amod_classify_obj * amod_classify_construct(const mod_classify_cfg * mod_classify_config, const msg_hops_cfg * msg_hops_config, const msg_tracks_cfg * msg_tracks_config, const msg_categories_cfg * msg_categories_config);
-
- void amod_classify_destroy(amod_classify_obj * obj);
-
- void amod_classify_connect(amod_classify_obj * obj, amsg_hops_obj * in1, amsg_tracks_obj * in2, amsg_categories_obj * out);
-
- void amod_classify_disconnect(amod_classify_obj * obj);
-
- void * amod_classify_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "amod_istft.h"
+ #include <amodule/amod_istft.h>
amod_istft_obj * amod_istft_construct(const mod_istft_cfg * mod_istft_config, const msg_spectra_cfg * msg_spectra_config, const msg_hops_cfg * msg_hops_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMODULE_ISTFT
-#define __ODAS_AMODULE_ISTFT
-
- /**
- * \file amod_istft.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../module/mod_istft.h"
- #include "../amessage/amsg_spectra.h"
- #include "../amessage/amsg_hops.h"
- #include "../general/thread.h"
-
- typedef struct amod_istft_obj {
-
- mod_istft_obj * mod_istft;
- amsg_spectra_obj * in;
- amsg_hops_obj * out;
- thread_obj * thread;
-
- } amod_istft_obj;
-
- amod_istft_obj * amod_istft_construct(const mod_istft_cfg * mod_istft_config, const msg_spectra_cfg * msg_spectra_config, const msg_hops_cfg * msg_hops_config);
-
- void amod_istft_destroy(amod_istft_obj * obj);
-
- void amod_istft_connect(amod_istft_obj * obj, amsg_spectra_obj * in, amsg_hops_obj * out);
-
- void amod_istft_disconnect(amod_istft_obj * obj);
-
- void * amod_istft_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "amod_mapping.h"
+ #include <amodule/amod_mapping.h>
amod_mapping_obj * amod_mapping_construct(const mod_mapping_cfg * mod_mapping_config, const msg_hops_cfg * msg_hops_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMODULE_MAPPING
-#define __ODAS_AMODULE_MAPPING
-
- /**
- * \file amod_mapping.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../module/mod_mapping.h"
- #include "../amessage/amsg_hops.h"
- #include "../general/thread.h"
-
- typedef struct amod_mapping_obj {
-
- mod_mapping_obj * mod_mapping;
- amsg_hops_obj * in;
- amsg_hops_obj * out;
- thread_obj * thread;
-
- } amod_mapping_obj;
-
- amod_mapping_obj * amod_mapping_construct(const mod_mapping_cfg * mod_mapping_config, const msg_hops_cfg * msg_hops_config);
-
- void amod_mapping_destroy(amod_mapping_obj * obj);
-
- void amod_mapping_connect(amod_mapping_obj * obj, amsg_hops_obj * in, amsg_hops_obj * out);
-
- void amod_mapping_disconnect(amod_mapping_obj * obj);
-
- void * amod_mapping_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "amod_noise.h"
+ #include <amodule/amod_noise.h>
amod_noise_obj * amod_noise_construct(const mod_noise_cfg * mod_noise_config, const msg_spectra_cfg * msg_spectra_config, const msg_powers_cfg * msg_powers_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMODULE_NOISE
-#define __ODAS_AMODULE_NOISE
-
- /**
- * \file amod_noise.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../module/mod_noise.h"
- #include "../amessage/amsg_spectra.h"
- #include "../amessage/amsg_powers.h"
- #include "../general/thread.h"
-
- typedef struct amod_noise_obj {
-
- mod_noise_obj * mod_noise;
- amsg_spectra_obj * in;
- amsg_powers_obj * out;
- thread_obj * thread;
-
- } amod_noise_obj;
-
- amod_noise_obj * amod_noise_construct(const mod_noise_cfg * mod_noise_config, const msg_spectra_cfg * msg_spectra_config, const msg_powers_cfg * msg_powers_config);
-
- void amod_noise_destroy(amod_noise_obj * obj);
-
- void amod_noise_connect(amod_noise_obj * obj, amsg_spectra_obj * in, amsg_powers_obj * out);
-
- void amod_noise_disconnect(amod_noise_obj * obj);
-
- void * amod_noise_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "amod_resample.h"
+ #include <amodule/amod_resample.h>
amod_resample_obj * amod_resample_construct(const mod_resample_cfg * mod_resample_config, const msg_hops_cfg * msg_hops_in_config, const msg_hops_cfg * msg_hops_out_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMODULE_RESAMPLE
-#define __ODAS_AMODULE_RESAMPLE
-
- /**
- * \file amod_resample.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../module/mod_resample.h"
- #include "../amessage/amsg_hops.h"
- #include "../general/thread.h"
-
- typedef struct amod_resample_obj {
-
- mod_resample_obj * mod_resample;
- amsg_hops_obj * in;
- amsg_hops_obj * out;
- thread_obj * thread;
-
- } amod_resample_obj;
-
- amod_resample_obj * amod_resample_construct(const mod_resample_cfg * mod_resample_config, const msg_hops_cfg * msg_hops_in_config, const msg_hops_cfg * msg_hops_out_config);
-
- void amod_resample_destroy(amod_resample_obj * obj);
-
- void amod_resample_connect(amod_resample_obj * obj, amsg_hops_obj * in, amsg_hops_obj * out);
-
- void amod_resample_disconnect(amod_resample_obj * obj);
-
- void * amod_resample_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "amod_ssl.h"
+ #include <amodule/amod_ssl.h>
amod_ssl_obj * amod_ssl_construct(const mod_ssl_cfg * mod_ssl_config, const msg_spectra_cfg * msg_spectra_config, const msg_pots_cfg * msg_pots_config) {
+++ /dev/null
-#ifndef __ODAS_AMODULE_SSL
-#define __ODAS_AMODULE_SSL
-
- /**
- * \file amod_ssl.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../module/mod_ssl.h"
- #include "../amessage/amsg_spectra.h"
- #include "../amessage/amsg_powers.h"
- #include "../amessage/amsg_pots.h"
- #include "../general/thread.h"
-
- typedef struct amod_ssl_obj {
-
- mod_ssl_obj * mod_ssl;
- amsg_spectra_obj * in;
- amsg_pots_obj * out;
- thread_obj * thread;
-
- } amod_ssl_obj;
-
- amod_ssl_obj * amod_ssl_construct(const mod_ssl_cfg * mod_ssl_config, const msg_spectra_cfg * msg_spectra_config, const msg_pots_cfg * msg_pots_config);
-
- void amod_ssl_destroy(amod_ssl_obj * obj);
-
- void amod_ssl_connect(amod_ssl_obj * obj, amsg_spectra_obj * in, amsg_pots_obj * out);
-
- void amod_ssl_disconnect(amod_ssl_obj * obj);
-
- void * amod_ssl_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "amod_sss.h"
+ #include <amodule/amod_sss.h>
amod_sss_obj * amod_sss_construct(const mod_sss_cfg * mod_sss_config, const msg_tracks_cfg * msg_tracks_config, const msg_spectra_cfg * msg_spectra_config) {
+++ /dev/null
-#ifndef __ODAS_AMODULE_SSS
-#define __ODAS_AMODULE_SSS
-
- /**
- * \file amod_sss.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../module/mod_sss.h"
- #include "../amessage/amsg_powers.h"
- #include "../amessage/amsg_tracks.h"
- #include "../amessage/amsg_spectra.h"
- #include "../general/thread.h"
-
- typedef struct amod_sss_obj {
-
- mod_sss_obj * mod_sss;
- amsg_spectra_obj * in1;
- amsg_powers_obj * in2;
- amsg_tracks_obj * in3;
- amsg_spectra_obj * out1;
- amsg_spectra_obj * out2;
- thread_obj * thread;
-
- } amod_sss_obj;
-
- amod_sss_obj * amod_sss_construct(const mod_sss_cfg * mod_sss_config, const msg_tracks_cfg * msg_tracks_config, const msg_spectra_cfg * msg_spectra_config);
-
- void amod_sss_destroy(amod_sss_obj * obj);
-
- void amod_sss_connect(amod_sss_obj * obj, amsg_spectra_obj * in1, amsg_powers_obj * in2, amsg_tracks_obj * in3, amsg_spectra_obj * out1, amsg_spectra_obj * out2);
-
- void amod_sss_disconnect(amod_sss_obj * obj);
-
- void * amod_sss_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "amod_sst.h"
+ #include <amodule/amod_sst.h>
amod_sst_obj * amod_sst_construct(const mod_sst_cfg * mod_sst_config, const mod_ssl_cfg * mod_ssl_config, const msg_pots_cfg * msg_pots_config, const msg_targets_cfg * msg_targets_config, const msg_tracks_cfg * msg_tracks_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMODULE_SST
-#define __ODAS_AMODULE_SST
-
- /**
- * \file amod_sst.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../module/mod_ssl.h"
- #include "../module/mod_sst.h"
- #include "../amessage/amsg_pots.h"
- #include "../amessage/amsg_targets.h"
- #include "../amessage/amsg_tracks.h"
- #include "../general/thread.h"
-
- typedef struct amod_sst_obj {
-
- mod_sst_obj * mod_sst;
- amsg_pots_obj * in1;
- amsg_targets_obj * in2;
- amsg_tracks_obj * out;
- thread_obj * thread;
-
- } amod_sst_obj;
-
- amod_sst_obj * amod_sst_construct(const mod_sst_cfg * mod_sst_config, const mod_ssl_cfg * mod_ssl_config, const msg_pots_cfg * msg_pots_config, const msg_targets_cfg * msg_targets_config, const msg_tracks_cfg * msg_tracks_config);
-
- void amod_sst_destroy(amod_sst_obj * obj);
-
- void amod_sst_connect(amod_sst_obj * obj, amsg_pots_obj * in1, amsg_targets_obj * in2, amsg_tracks_obj * out);
-
- void amod_sst_disconnect(amod_sst_obj * obj);
-
- void * amod_sst_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "amod_stft.h"
+ #include <amodule/amod_stft.h>
amod_stft_obj * amod_stft_construct(const mod_stft_cfg * mod_stft_config, const msg_hops_cfg * msg_hops_config, const msg_spectra_cfg * msg_spectra_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMODULE_STFT
-#define __ODAS_AMODULE_STFT
-
- /**
- * \file amod_stft.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../module/mod_stft.h"
- #include "../amessage/amsg_hops.h"
- #include "../amessage/amsg_spectra.h"
- #include "../general/thread.h"
-
- typedef struct amod_stft_obj {
-
- mod_stft_obj * mod_stft;
- amsg_hops_obj * in;
- amsg_spectra_obj * out;
- thread_obj * thread;
-
- } amod_stft_obj;
-
- amod_stft_obj * amod_stft_construct(const mod_stft_cfg * mod_stft_config, const msg_hops_cfg * msg_hops_config, const msg_spectra_cfg * msg_spectra_config);
-
- void amod_stft_destroy(amod_stft_obj * obj);
-
- void amod_stft_connect(amod_stft_obj * obj, amsg_hops_obj * in, amsg_spectra_obj * out);
-
- void amod_stft_disconnect(amod_stft_obj * obj);
-
- void * amod_stft_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "amod_volume.h"
+ #include <amodule/amod_volume.h>
amod_volume_obj * amod_volume_construct(const mod_volume_cfg * mod_volume_config, const msg_hops_cfg * msg_hops_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_AMODULE_VOLUME
-#define __ODAS_AMODULE_VOLUME
-
- /**
- * \file amod_volume.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../module/mod_volume.h"
- #include "../amessage/amsg_hops.h"
- #include "../general/thread.h"
-
- typedef struct amod_volume_obj {
-
- mod_volume_obj * mod_volume;
- amsg_hops_obj * in;
- amsg_hops_obj * out;
- thread_obj * thread;
-
- } amod_volume_obj;
-
- amod_volume_obj * amod_volume_construct(const mod_volume_cfg * mod_volume_config, const msg_hops_cfg * msg_hops_config);
-
- void amod_volume_destroy(amod_volume_obj * obj);
-
- void amod_volume_connect(amod_volume_obj * obj, amsg_hops_obj * in, amsg_hops_obj * out);
-
- void amod_volume_disconnect(amod_volume_obj * obj);
-
- void * amod_volume_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "asnk_categories.h"
+ #include <asink/asnk_categories.h>
asnk_categories_obj * asnk_categories_construct(const snk_categories_cfg * snk_categories_config, const msg_categories_cfg * msg_categories_config) {
// Close the sink
snk_categories_close(obj->snk_categories);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ASINK_CATEGORIES
-#define __ODAS_ASINK_CATEGORIES
-
- /**
- * \file asink_categories.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../amessage/amsg_categories.h"
- #include "../sink/snk_categories.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
-
- typedef struct asnk_categories_obj {
-
- snk_categories_obj * snk_categories;
- amsg_categories_obj * in;
- thread_obj * thread;
-
- } asnk_categories_obj;
-
- asnk_categories_obj * asnk_categories_construct(const snk_categories_cfg * snk_categories_config, const msg_categories_cfg * msg_categories_config);
-
- void asnk_categories_destroy(asnk_categories_obj * obj);
-
- void asnk_categories_connect(asnk_categories_obj * obj, amsg_categories_obj * in);
-
- void asnk_categories_disconnect(asnk_categories_obj * obj);
-
- void * asnk_categories_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "asnk_hops.h"
+ #include <asink/asnk_hops.h>
asnk_hops_obj * asnk_hops_construct(const snk_hops_cfg * snk_hops_config, const msg_hops_cfg * msg_hops_config) {
// Close the sink
snk_hops_close(obj->snk_hops);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ASINK_HOPS
-#define __ODAS_ASINK_HOPS
-
- /**
- * \file asink_hops.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../amessage/amsg_hops.h"
- #include "../sink/snk_hops.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
-
- typedef struct asnk_hops_obj {
-
- snk_hops_obj * snk_hops;
- amsg_hops_obj * in;
- thread_obj * thread;
-
- } asnk_hops_obj;
-
- asnk_hops_obj * asnk_hops_construct(const snk_hops_cfg * snk_hops_config, const msg_hops_cfg * msg_hops_config);
-
- void asnk_hops_destroy(asnk_hops_obj * obj);
-
- void asnk_hops_connect(asnk_hops_obj * obj, amsg_hops_obj * in);
-
- void asnk_hops_disconnect(asnk_hops_obj * obj);
-
- void * asnk_hops_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "asnk_pots.h"
+ #include <asink/asnk_pots.h>
asnk_pots_obj * asnk_pots_construct(const snk_pots_cfg * snk_pots_config, const msg_pots_cfg * msg_pots_config) {
// Close the sink
snk_pots_close(obj->snk_pots);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ASINK_POTS
-#define __ODAS_ASINK_POTS
-
- /**
- * \file asink_pots.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../amessage/amsg_pots.h"
- #include "../sink/snk_pots.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
-
- typedef struct asnk_pots_obj {
-
- snk_pots_obj * snk_pots;
- amsg_pots_obj * in;
- thread_obj * thread;
-
- } asnk_pots_obj;
-
- asnk_pots_obj * asnk_pots_construct(const snk_pots_cfg * snk_pots_config, const msg_pots_cfg * msg_pots_config);
-
- void asnk_pots_destroy(asnk_pots_obj * obj);
-
- void asnk_pots_connect(asnk_pots_obj * obj, amsg_pots_obj * in);
-
- void asnk_pots_disconnect(asnk_pots_obj * obj);
-
- void * asnk_pots_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "asnk_powers.h"
+ #include <asink/asnk_powers.h>
asnk_powers_obj * asnk_powers_construct(const snk_powers_cfg * snk_powers_config, const msg_powers_cfg * msg_powers_config) {
// Close the sink
snk_powers_close(obj->snk_powers);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ASINK_POWERS
-#define __ODAS_ASINK_POWERS
-
- /**
- * \file asink_powers.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../amessage/amsg_powers.h"
- #include "../sink/snk_powers.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
-
- typedef struct asnk_powers_obj {
-
- snk_powers_obj * snk_powers;
- amsg_powers_obj * in;
- thread_obj * thread;
-
- } asnk_powers_obj;
-
- asnk_powers_obj * asnk_powers_construct(const snk_powers_cfg * snk_powers_config, const msg_powers_cfg * msg_powers_config);
-
- void asnk_powers_destroy(asnk_powers_obj * obj);
-
- void asnk_powers_connect(asnk_powers_obj * obj, amsg_powers_obj * in);
-
- void asnk_powers_disconnect(asnk_powers_obj * obj);
-
- void * asnk_powers_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "asnk_spectra.h"
+ #include <asink/asnk_spectra.h>
asnk_spectra_obj * asnk_spectra_construct(const snk_spectra_cfg * snk_spectra_config, const msg_spectra_cfg * msg_spectra_config) {
// Close the sink
snk_spectra_close(obj->snk_spectra);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ASINK_SPECTRA
-#define __ODAS_ASINK_SPECTRA
-
- /**
- * \file asink_spectra.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../amessage/amsg_spectra.h"
- #include "../sink/snk_spectra.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
-
- typedef struct asnk_spectra_obj {
-
- snk_spectra_obj * snk_spectra;
- amsg_spectra_obj * in;
- thread_obj * thread;
-
- } asnk_spectra_obj;
-
- asnk_spectra_obj * asnk_spectra_construct(const snk_spectra_cfg * snk_spectra_config, const msg_spectra_cfg * msg_spectra_config);
-
- void asnk_spectra_destroy(asnk_spectra_obj * obj);
-
- void asnk_spectra_connect(asnk_spectra_obj * obj, amsg_spectra_obj * in);
-
- void asnk_spectra_disconnect(asnk_spectra_obj * obj);
-
- void * asnk_spectra_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "asnk_tracks.h"
+ #include <asink/asnk_tracks.h>
asnk_tracks_obj * asnk_tracks_construct(const snk_tracks_cfg * snk_tracks_config, const msg_tracks_cfg * msg_tracks_config) {
// Close the sink
snk_tracks_close(obj->snk_tracks);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ASINK_TRACKS
-#define __ODAS_ASINK_TRACKS
-
- /**
- * \file asink_tracks.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../amessage/amsg_tracks.h"
- #include "../sink/snk_tracks.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
-
- typedef struct asnk_tracks_obj {
-
- snk_tracks_obj * snk_tracks;
- amsg_tracks_obj * in;
- thread_obj * thread;
-
- } asnk_tracks_obj;
-
- asnk_tracks_obj * asnk_tracks_construct(const snk_tracks_cfg * snk_tracks_config, const msg_tracks_cfg * msg_tracks_config);
-
- void asnk_tracks_destroy(asnk_tracks_obj * obj);
-
- void asnk_tracks_connect(asnk_tracks_obj * obj, amsg_tracks_obj * in);
-
- void asnk_tracks_disconnect(asnk_tracks_obj * obj);
-
- void * asnk_tracks_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "asrc_hops.h"
+ #include <asource/asrc_hops.h>
asrc_hops_obj * asrc_hops_construct(const src_hops_cfg * src_hops_config, const msg_hops_cfg * msg_hops_config) {
msg_hops_zero(msg_hops_out);
amsg_hops_filled_push(obj->out, msg_hops_out);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_ASOURCE_HOPS
-#define __ODAS_ASOURCE_HOPS
-
- /**
- * \file asource_hops.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../amessage/amsg_hops.h"
- #include "../source/src_hops.h"
- #include "../general/thread.h"
-
- #include <stdlib.h>
-
- typedef struct asrc_hops_obj {
-
- src_hops_obj * src_hops;
- amsg_hops_obj * out;
- thread_obj * thread;
-
- } asrc_hops_obj;
-
- asrc_hops_obj * asrc_hops_construct(const src_hops_cfg * src_hops_config, const msg_hops_cfg * msg_hops_config);
-
- void asrc_hops_destroy(asrc_hops_obj * obj);
-
- void asrc_hops_connect(asrc_hops_obj * obj, amsg_hops_obj * out);
-
- void asrc_hops_disconnect(asrc_hops_obj * obj);
-
- void * asrc_hops_thread(void * ptr);
-
-#endif
\ No newline at end of file
*
*/
- #include "con_categories.h"
+ #include <connector/con_categories.h>
con_categories_obj * con_categories_construct(const unsigned int nOuts, const msg_categories_cfg * msg_categories_config) {
return rtnValue;
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_CONNECTOR_CATEGORIES
-#define __ODAS_CONNECTOR_CATEGORIES
-
- /**
- * \file con_categories.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../message/msg_categories.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct con_categories_obj {
-
- msg_categories_obj * in;
- msg_categories_obj ** outs;
-
- unsigned int nOuts;
-
- } con_categories_obj;
-
- con_categories_obj * con_categories_construct(const unsigned int nOuts, const msg_categories_cfg * msg_categories_config);
-
- void con_categories_destroy(con_categories_obj * obj);
-
- int con_categories_process(con_categories_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "con_hops.h"
+ #include <connector/con_hops.h>
con_hops_obj * con_hops_construct(const unsigned int nOuts, const msg_hops_cfg * msg_hops_config) {
return rtnValue;
- }
\ No newline at end of file
+ }
+++ /dev/null
- /**
- * \file con_hops.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#ifndef __ODAS_CONNECTOR_HOPS
-#define __ODAS_CONNECTOR_HOPS
-
- #include "../message/msg_hops.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct con_hops_obj {
-
- msg_hops_obj * in;
- msg_hops_obj ** outs;
-
- unsigned int nOuts;
-
- } con_hops_obj;
-
- con_hops_obj * con_hops_construct(const unsigned int nOuts, const msg_hops_cfg * msg_hops_config);
-
- void con_hops_destroy(con_hops_obj * obj);
-
- int con_hops_process(con_hops_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "con_pots.h"
+ #include <connector/con_pots.h>
con_pots_obj * con_pots_construct(const unsigned int nOuts, const msg_pots_cfg * msg_pots_config) {
return rtnValue;
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_CONNECTOR_POTS
-#define __ODAS_CONNECTOR_POTS
-
- /**
- * \file con_pots.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../message/msg_pots.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct con_pots_obj {
-
- msg_pots_obj * in;
- msg_pots_obj ** outs;
-
- unsigned int nOuts;
-
- } con_pots_obj;
-
- con_pots_obj * con_pots_construct(const unsigned int nOuts, const msg_pots_cfg * msg_pots_config);
-
- void con_pots_destroy(con_pots_obj * obj);
-
- int con_pots_process(con_pots_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "con_powers.h"
+ #include <connector/con_powers.h>
con_powers_obj * con_powers_construct(const unsigned int nOuts, const msg_powers_cfg * msg_powers_config) {
return rtnValue;
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_CONNECTOR_POWERS
-#define __ODAS_CONNECTOR_POWERS
-
- /**
- * \file con_powers.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../message/msg_powers.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct con_powers_obj {
-
- msg_powers_obj * in;
- msg_powers_obj ** outs;
-
- unsigned int nOuts;
-
- } con_powers_obj;
-
- con_powers_obj * con_powers_construct(const unsigned int nOuts, const msg_powers_cfg * msg_powers_config);
-
- void con_powers_destroy(con_powers_obj * obj);
-
- int con_powers_process(con_powers_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "con_spectra.h"
+ #include <connector/con_spectra.h>
con_spectra_obj * con_spectra_construct(const unsigned int nOuts, const msg_spectra_cfg * msg_spectra_config) {
return rtnValue;
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_CONNECTOR_SPECTRA
-#define __ODAS_CONNECTOR_SPECTRA
-
- /**
- * \file con_spectra.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../message/msg_spectra.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct con_spectra_obj {
-
- msg_spectra_obj * in;
- msg_spectra_obj ** outs;
-
- unsigned int nOuts;
-
- } con_spectra_obj;
-
- con_spectra_obj * con_spectra_construct(const unsigned int nOuts, const msg_spectra_cfg * msg_spectra_config);
-
- void con_spectra_destroy(con_spectra_obj * obj);
-
- int con_spectra_process(con_spectra_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "con_targets.h"
+ #include <connector/con_targets.h>
con_targets_obj * con_targets_construct(const unsigned int nOuts, const msg_targets_cfg * msg_targets_config) {
return rtnValue;
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_CONNECTOR_TARGETS
-#define __ODAS_CONNECTOR_TARGETS
-
- /**
- * \file con_targets.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../message/msg_targets.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct con_targets_obj {
-
- msg_targets_obj * in;
- msg_targets_obj ** outs;
-
- unsigned int nOuts;
-
- } con_targets_obj;
-
- con_targets_obj * con_targets_construct(const unsigned int nOuts, const msg_targets_cfg * msg_targets_config);
-
- void con_targets_destroy(con_targets_obj * obj);
-
- int con_targets_process(con_targets_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "con_tracks.h"
+ #include <connector/con_tracks.h>
con_tracks_obj * con_tracks_construct(const unsigned int nOuts, const msg_tracks_cfg * msg_tracks_config) {
return rtnValue;
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_CONNECTOR_TRACKS
-#define __ODAS_CONNECTOR_TRACKS
-
- /**
- * \file con_tracks.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../message/msg_tracks.h"
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct con_tracks_obj {
-
- msg_tracks_obj * in;
- msg_tracks_obj ** outs;
-
- unsigned int nOuts;
-
- } con_tracks_obj;
-
- con_tracks_obj * con_tracks_construct(const unsigned int nOuts, const msg_tracks_cfg * msg_tracks_config);
-
- void con_tracks_destroy(con_tracks_obj * obj);
-
- int con_tracks_process(con_tracks_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "format.h"
+ #include <general/format.h>
format_obj * format_construct() {
printf("(null)\n");
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_GENERAL_FORMAT
-#define __ODAS_GENERAL_FORMAT
-
- /**
- * \file format.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef enum format_type {
-
- format_undefined = 0,
- format_binary_int08 = 8,
- format_binary_int16 = 16,
- format_binary_int24 = 24,
- format_binary_int32 = 32,
- format_binary_float = 1,
- format_text_json = 2,
-
- } format_type;
-
- typedef struct format_obj {
-
- format_type type;
-
- } format_obj;
-
- format_obj * format_construct();
-
- format_obj * format_construct_undefined();
-
- format_obj * format_construct_binary_int(const unsigned int nBits);
-
- format_obj * format_construct_binary_float();
-
- format_obj * format_construct_text_json();
-
- format_obj * format_clone(const format_obj * obj);
-
- void format_destroy(format_obj * obj);
-
- void format_printf(const format_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "interface.h"
+ #include <general/interface.h>
interface_obj * interface_construct() {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_GENERAL_INTERFACE
-#define __ODAS_GENERAL_INTERFACE
-
- /**
- * \file interface.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-
- typedef enum interface_type {
-
- interface_undefined = 0,
- interface_blackhole = 1,
- interface_file = 2,
- interface_socket = 3,
- interface_soundcard = 4,
- interface_terminal = 5,
-
- } interface_type;
-
- typedef struct interface_obj {
-
- interface_type type;
-
- char * fileName;
-
- char * ip;
- unsigned int port;
-
- unsigned int card;
- unsigned int device;
-
- } interface_obj;
-
- interface_obj * interface_construct();
-
- interface_obj * interface_construct_blackhole();
-
- interface_obj * interface_construct_file(const char * fileName);
-
- interface_obj * interface_construct_socket(const char * ip, const unsigned int port);
-
- interface_obj * interface_construct_soundcard(const unsigned int card, const unsigned int device);
-
- interface_obj * interface_construct_terminal(void);
-
- interface_obj * interface_clone(const interface_obj * obj);
-
- void interface_destroy(interface_obj * obj);
-
- void interface_printf(const interface_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "link.h"
+ #include <general/link.h>
links_obj * links_construct_zero(const unsigned int nLinks) {
printf("(%u): %u\n",iLink,obj->array[iLink]);
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_GENERAL_LINK
-#define __ODAS_GENERAL_LINK
-
- /**
- * \file link.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-
- typedef struct links_obj {
-
- unsigned int * array;
- unsigned int nLinks;
-
- } links_obj;
-
- links_obj * links_construct_zero(const unsigned int nLinks);
-
- links_obj * links_clone(const links_obj * obj);
-
- void links_destroy(links_obj * obj);
-
- void links_printf(const links_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "mic.h"
+ #include <general/mic.h>
mics_obj * mics_construct_zero(const unsigned int nChannels) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_GENERAL_MIC
-#define __ODAS_GENERAL_MIC
-
- /**
- * \file mic.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-
- typedef struct mics_obj {
-
- unsigned int nChannels;
- unsigned int nPairs;
- float * mu;
- float * sigma2;
- float * direction;
- float * thetaAllPass;
- float * thetaNoPass;
-
- } mics_obj;
-
- mics_obj * mics_construct_zero(const unsigned int nChannels);
-
- mics_obj * mics_clone(const mics_obj * obj);
-
- void mics_destroy(mics_obj * obj);
-
- void mics_printf(const mics_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "samplerate.h"
+ #include <general/samplerate.h>
samplerate_obj * samplerate_construct_zero(void) {
printf("mu = %u\n",obj->mu);
printf("sigma2 = %f\n",obj->sigma2);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_GENERAL_SAMPLERATE
-#define __ODAS_GENERAL_SAMPLERATE
-
- /**
- * \file samplerate.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct samplerate_obj {
-
- unsigned int mu;
- float sigma2;
-
- } samplerate_obj;
-
- samplerate_obj * samplerate_construct_zero(void);
-
- samplerate_obj * samplerate_clone(const samplerate_obj * obj);
-
- void samplerate_destroy(samplerate_obj * obj);
-
- void samplerate_printf(const samplerate_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "soundspeed.h"
+ #include <general/soundspeed.h>
soundspeed_obj * soundspeed_construct_zero(void) {
printf("mu = %f\n",obj->mu);
printf("sigma2 = %f\n",obj->sigma2);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_GENERAL_SOUNDSPEED
-#define __ODAS_GENERAL_SOUNDSPEED
-
- /**
- * \file soundspeed.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
-
- typedef struct soundspeed_obj {
-
- float mu;
- float sigma2;
-
- } soundspeed_obj;
-
- soundspeed_obj * soundspeed_construct_zero(void);
-
- soundspeed_obj * soundspeed_clone(const soundspeed_obj * obj);
-
- void soundspeed_destroy(soundspeed_obj * obj);
-
- void soundspeed_printf(const soundspeed_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "spatialfilter.h"
+ #include <general/spatialfilter.h>
spatialfilter_obj * spatialfilter_construct_zero(void) {
+++ /dev/null
-#ifndef __ODAS_SIGNAL_SPATIALFILTER
-#define __ODAS_SIGNAL_SPATIALFILTER
-
- /**
- * \file spatialfilter.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct spatialfilter_obj {
-
- float * direction;
- float thetaAllPass;
- float thetaNoPass;
-
- } spatialfilter_obj;
-
- spatialfilter_obj * spatialfilter_construct_zero(void);
-
- spatialfilter_obj * spatialfilter_clone(const spatialfilter_obj * obj);
-
- void spatialfilter_destroy(spatialfilter_obj * obj);
-
- void spatialfilter_printf(const spatialfilter_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "thread.h"
+ #include <general/thread.h>
thread_obj * thread_construct(void * (* start_routine) (void *), void * arg) {
pthread_join(obj->thread, NULL);
}
-
\ No newline at end of file
+
+++ /dev/null
-#ifndef __ODAS_GENERAL_THREAD
-#define __ODAS_GENERAL_THREAD
-
- /**
- * \file thread.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <pthread.h>
-
- typedef struct thread_obj {
-
- pthread_mutex_t use;
- char stop;
- pthread_t thread;
- void * (* start_routine) (void *);
- void * arg;
-
- } thread_obj;
-
- thread_obj * thread_construct(void * (* start_routine) (void *), void * arg);
-
- void thread_destroy(thread_obj * obj);
-
- void thread_start(thread_obj * obj);
-
- void thread_stop(thread_obj * obj);
-
- char thread_askedToStop(thread_obj * obj);
-
- void thread_join(thread_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "combining.h"
+ #include <init/combining.h>
assignations_obj * combining_generate(const unsigned int nPots, const unsigned int nTracks) {
+++ /dev/null
-#ifndef __ODAS_INIT_COMBINING
-#define __ODAS_INIT_COMBINING
-
- /**
- * \file combining.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include "../signal/assignation.h"
-
- assignations_obj * combining_generate(const unsigned int nPots, const unsigned int nTracks);
-
-#endif
\ No newline at end of file
*
*/
- #include "delay.h"
+ #include <init/delay.h>
tdoas_obj * delay_tdoas(const points_obj * points, const mics_obj * mics, const soundspeed_obj * soundspeed, const unsigned int fS, const unsigned int frameSize, const unsigned int interpRate) {
return obj;
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_INIT_DELAY
-#define __ODAS_INIT_DELAY
-
- /**
- * \file delay.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <math.h>
-
- #include "../general/mic.h"
- #include "../general/soundspeed.h"
-
- #include "../signal/delta.h"
- #include "../signal/point.h"
- #include "../signal/tdoa.h"
- #include "../signal/tau.h"
-
- tdoas_obj * delay_tdoas(const points_obj * points, const mics_obj * mics, const soundspeed_obj * soundspeed, const unsigned int fS, const unsigned int frameSize, const unsigned int interpRate);
-
- //tdoas_obj * delay_tdoas_minmax(const tdoas_obj * tdoas, const deltas_obj * deltas);
-
- //void delay_tdoas_allminmax(tdoas_obj * tdoas, const tdoas_obj * minmax);
-
- taus_obj * delay_taus(const points_obj * points, const mics_obj * mics, const soundspeed_obj * soundspeed, const unsigned int fS, const unsigned int frameSize, const unsigned int interpRate);
-
-#endif
-
-
\ No newline at end of file
*
*/
- #include "directivity.h"
+ #include <init/directivity.h>
beampatterns_obj * directivity_beampattern_mics(const mics_obj * mics, const unsigned int nThetas) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_INIT_DIRECTIVITY
-#define __ODAS_INIT_DIRECTIVITY
-
- /**
- * \file directivity.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <math.h>
-
- #include "../general/mic.h"
- #include "../general/spatialfilter.h"
-
- #include "../signal/beampattern.h"
- #include "../signal/pair.h"
- #include "../signal/point.h"
- #include "../signal/spatialgain.h"
- #include "../signal/spatialindex.h"
- #include "../signal/spatialmask.h"
-
- beampatterns_obj * directivity_beampattern_mics(const mics_obj * mics, const unsigned int nThetas);
-
- beampatterns_obj * directivity_beampattern_spatialfilter(const spatialfilter_obj * spatialfilter, const unsigned int nThetas);
-
- spatialgains_obj * directivity_spatialgains(const mics_obj * mics, const beampatterns_obj * beampatterns_mics, const spatialfilter_obj * spatialfilter, const beampatterns_obj * beampatterns_spatialfilter, const points_obj * points);
-
- spatialmasks_obj * directivity_spatialmasks(const spatialgains_obj * spatialgains, const float minGain);
-
- spatialindexes_obj * directivity_spatialindexes(const spatialmasks_obj * spatialmasks);
-
- pairs_obj * directivity_pairs(const spatialmasks_obj * spatialmasks);
-
- void directivity_pairsadd(pairs_obj * destPairs, const pairs_obj * srcPairs);
-
-#endif
\ No newline at end of file
*
*/
- #include "hit.h"
+ #include <init/hit.h>
areas_obj * hit_areas_zero(const taus_obj * taus, const tdoas_obj * tdoas, const deltas_obj * deltas) {
return deltas;
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_INIT_HIT
-#define __ODAS_INIT_HIT
-
- /**
- * \file hit.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <math.h>
-
- #include "../signal/area.h"
- #include "../signal/tau.h"
- #include "../signal/tdoa.h"
- #include "../signal/delta.h"
- #include "../signal/spatialmask.h"
-
- areas_obj * hit_areas_zero(const taus_obj * taus, const tdoas_obj * tdoas, const deltas_obj * deltas);
-
- void hit_areas_pair(areas_obj * areas, const taus_obj * taus, const tdoas_obj * tdoas, const deltas_obj * deltas, const spatialmasks_obj * spatialmasks, const unsigned int iPair);
-
- float hit_areas_min(const areas_obj * areas, const spatialmasks_obj * spatialmasks);
-
- area_obj * hit_area_zero(const taus_obj * taus, const tdoas_obj * tdoas, const deltas_obj * deltas);
-
- void hit_area_pair(area_obj * area, const areas_obj * areas, const taus_obj * taus, const tdoas_obj * tdoas, const deltas_obj * deltas, const spatialmasks_obj * spatialmasks, const unsigned int iPair);
-
- deltas_obj * hit_train(const taus_obj * taus, const tdoas_obj * tdoas, const spatialmasks_obj * spatialmasks, const float probMin);
-
- deltas_obj * hit_constant(const tdoas_obj * tdoas, const unsigned int delta);
-
-#endif
*
*/
- #include "linking.h"
+ #include <init/linking.h>
maps_obj * linking_maps(const tdoas_obj * tdoasCoarse, const tdoas_obj * tdoasFine, const deltas_obj * deltasCoarse, const deltas_obj * deltasFine, const spatialmasks_obj * spatialmasksCoarse, const spatialmasks_obj * spatialmasksFine, const unsigned int nMatches) {
return overlap;
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_INIT_LINKING
-#define __ODAS_INIT_LINKING
-
- /**
- * \file linking.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <math.h>
- #include <stdlib.h>
- #include <string.h>
-
- #include "../signal/delta.h"
- #include "../signal/index.h"
- #include "../signal/map.h"
- #include "../signal/tdoa.h"
- #include "../signal/spatialmask.h"
-
- maps_obj * linking_maps(const tdoas_obj * tdoasCoarse, const tdoas_obj * tdoasFine, const deltas_obj * deltasCoarse, const deltas_obj * deltasFine, const spatialmasks_obj * spatialmasksCoarse, const spatialmasks_obj * spatialmasksFine, const unsigned int nMatches);
-
- indexes_obj * linking_indexes(const maps_obj * maps);
-
- float linking_overlap(const float lambdaCoarseLeft, const float lambdaCoarseRight, const float lambdaFineLeft, const float lambdaFineRight);
-
-#endif
\ No newline at end of file
*
*/
- #include "scanning.h"
+ #include <init/scanning.h>
scans_obj * scanning_init_scans(const mics_obj * mics, const spatialfilter_obj * spatialfilter, const unsigned int nLevels, const unsigned int * levels, const unsigned int fS, const soundspeed_obj * soundspeed, const unsigned int nMatches, const unsigned int frameSize, const signed int * deltas, const float probMin, const unsigned int nRefineLevels, const unsigned int nThetas, const float gainMin, const unsigned int interpRate) {
+++ /dev/null
-#ifndef __ODAS_INIT_SCANNING
-#define __ODAS_INIT_SCANNING
-
- /**
- * \file scanning.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../general/mic.h"
- #include "../general/soundspeed.h"
- #include "../general/spatialfilter.h"
-
- #include "../signal/beampattern.h"
- #include "../signal/scan.h"
- #include "../signal/spatialgain.h"
- #include "../signal/spatialindex.h"
- #include "../signal/spatialmask.h"
- #include "../signal/map.h"
- #include "../signal/pair.h"
- #include "../signal/tau.h"
-
- #include "../init/delay.h"
- #include "../init/directivity.h"
- #include "../init/hit.h"
- #include "../init/linking.h"
- #include "../init/space.h"
-
- scans_obj * scanning_init_scans(const mics_obj * mics, const spatialfilter_obj * spatialfilter, const unsigned int nLevels, const unsigned int * levels, const unsigned int fS, const soundspeed_obj * soundspeed, const unsigned int nMatches, const unsigned int frameSize, const signed int * deltas, const float probMin, const unsigned int nRefineLevels, const unsigned int nThetas, const float gainMin, const unsigned int interpRate);
-
-#endif
\ No newline at end of file
*
*/
- #include "space.h"
+ #include <init/space.h>
triangles_obj * space_triangles_level_zero(void) {
return shortestDistance;
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_INIT_SPACE
-#define __ODAS_INIT_SPACE
-
- /**
- * \file space.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <math.h>
- #include <stdlib.h>
- #include <string.h>
- #include "../signal/triangle.h"
- #include "../signal/point.h"
-
- triangles_obj * space_triangles_level_zero(void);
-
- triangles_obj * space_triangles_level_next(const triangles_obj * triangles);
-
- triangles_obj * space_triangles_level_level(const unsigned int level);
-
- triangles_obj * space_triangles_points(const points_obj * points, const unsigned int index);
-
- points_obj * space_points_triangles(const triangles_obj * triangles);
-
- points_obj * space_points_fine(const points_obj * points, const unsigned int level);
-
- points_obj * space_sphere(const unsigned int level);
-
- points_obj * space_halfsphere(const unsigned int level);
-
- float space_distances_shortest_triangles(const triangles_obj * triangles);
-
- float space_distances_shortest_points(const points_obj * points);
-
-#endif
\ No newline at end of file
*
*/
- #include "windowing.h"
+ #include <init/windowing.h>
window_obj * windowing_hann(const unsigned int frameSize) {
+++ /dev/null
-#ifndef __ODAS_INIT_WINDOWING
-#define __ODAS_INIT_WINDOWING
-
- /**
- * \file windowing.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <math.h>
-
- #include "../signal/window.h"
-
- window_obj * windowing_hann(const unsigned int frameSize);
-
- window_obj * windowing_roothann(const unsigned int frameSize);
-
-#endif
-
-
\ No newline at end of file
*
*/
- #include "inj_targets.h"
+ #include <injector/inj_targets.h>
inj_targets_obj * inj_targets_construct(const inj_targets_cfg * inj_targets_config, const msg_hops_cfg * msg_hops_config, const msg_targets_cfg * msg_targets_config) {
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_INJECTOR_TARGETS
-#define __ODAS_INJECTOR_TARGETS
-
- /**
- * \file inj_targets.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../message/msg_hops.h"
- #include "../message/msg_targets.h"
-
- #include "../general/format.h"
- #include "../general/interface.h"
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct inj_targets_obj {
-
- unsigned long long timeStamp;
-
- unsigned int nTargets;
- unsigned int fS;
-
- msg_hops_obj * in;
- msg_targets_obj * out;
-
- targets_obj * targets;
-
- } inj_targets_obj;
-
- typedef struct inj_targets_cfg {
-
- unsigned int nTargets;
- targets_obj * targets;
-
- } inj_targets_cfg;
-
- inj_targets_obj * inj_targets_construct(const inj_targets_cfg * inj_targets_config, const msg_hops_cfg * msg_hops_config, const msg_targets_cfg * msg_targets_config);
-
- void inj_targets_destroy(inj_targets_obj * obj);
-
- void inj_targets_connect(inj_targets_obj * obj, msg_hops_obj * in, msg_targets_obj * out);
-
- void inj_targets_disconnect(inj_targets_obj * obj);
-
- int inj_targets_process(inj_targets_obj * obj);
-
- inj_targets_cfg * inj_targets_cfg_construct(void);
-
- void inj_targets_cfg_destroy(inj_targets_cfg * cfg);
-
- void inj_targets_cfg_printf(const inj_targets_cfg * cfg);
-
-#endif
\ No newline at end of file
*
*/
- #include "msg_categories.h"
+ #include <message/msg_categories.h>
msg_categories_obj * msg_categories_construct(const msg_categories_cfg * msg_categories_config) {
+++ /dev/null
-#ifndef __ODAS_MESSAGE_CATEGORIES
-#define __ODAS_MESSAGE_CATEGORIES
-
- /**
- * \file msg_categories.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include "../signal/category.h"
-
- typedef struct msg_categories_obj {
-
- unsigned long long timeStamp;
- unsigned int fS;
- categories_obj * categories;
-
- } msg_categories_obj;
-
- typedef struct msg_categories_cfg {
-
- unsigned int nChannels;
- unsigned int fS;
-
- } msg_categories_cfg;
-
- msg_categories_obj * msg_categories_construct(const msg_categories_cfg * msg_categories_config);
-
- void msg_categories_destroy(msg_categories_obj * obj);
-
- void msg_categories_copy(msg_categories_obj * dest, const msg_categories_obj * src);
-
- void msg_categories_zero(msg_categories_obj * obj);
-
- unsigned int msg_categories_isZero(const msg_categories_obj * obj);
-
- msg_categories_cfg * msg_categories_cfg_construct(void);
-
- void msg_categories_cfg_destroy(msg_categories_cfg * msg_categories_config);
-
- void msg_categories_cfg_printf(const msg_categories_cfg * msg_categories_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "msg_hops.h"
+ #include <message/msg_hops.h>
msg_hops_obj * msg_hops_construct(const msg_hops_cfg * msg_hops_config) {
+++ /dev/null
-#ifndef __ODAS_MESSAGE_HOPS
-#define __ODAS_MESSAGE_HOPS
-
- /**
- * \file msg_hops.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include "../signal/hop.h"
- #include "../utils/fifo.h"
-
- typedef struct msg_hops_obj {
-
- unsigned long long timeStamp;
- unsigned int fS;
- hops_obj * hops;
-
- } msg_hops_obj;
-
- typedef struct msg_hops_cfg {
-
- unsigned int hopSize;
- unsigned int nChannels;
- unsigned int fS;
-
- } msg_hops_cfg;
-
- msg_hops_obj * msg_hops_construct(const msg_hops_cfg * msg_hops_config);
-
- void msg_hops_destroy(msg_hops_obj * obj);
-
- void msg_hops_copy(msg_hops_obj * dest, const msg_hops_obj * src);
-
- void msg_hops_zero(msg_hops_obj * obj);
-
- unsigned int msg_hops_isZero(const msg_hops_obj * obj);
-
- msg_hops_cfg * msg_hops_cfg_construct(void);
-
- void msg_hops_cfg_destroy(msg_hops_cfg * msg_hops_config);
-
- void msg_hops_cfg_printf(const msg_hops_cfg * msg_hops_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "msg_pots.h"
+ #include <message/msg_pots.h>
msg_pots_obj * msg_pots_construct(const msg_pots_cfg * cfg) {
printf("nPots = %u\n", msg_pots_config->nPots);
printf("fS = %u\n", msg_pots_config->fS);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MESSAGE_POTS
-#define __ODAS_MESSAGE_POTS
-
- /**
- * \file msg_pots.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include "../signal/pot.h"
-
- typedef struct msg_pots_obj {
-
- unsigned long long timeStamp;
- unsigned int fS;
- pots_obj * pots;
-
- } msg_pots_obj;
-
- typedef struct msg_pots_cfg {
-
- unsigned int nPots;
- unsigned int fS;
-
- } msg_pots_cfg;
-
- msg_pots_obj * msg_pots_construct(const msg_pots_cfg * cfg);
-
- void msg_pots_destroy(msg_pots_obj * obj);
-
- void msg_pots_copy(msg_pots_obj * dest, const msg_pots_obj * src);
-
- void msg_pots_zero(msg_pots_obj * obj);
-
- unsigned int msg_pots_isZero(const msg_pots_obj * obj);
-
- msg_pots_cfg * msg_pots_cfg_construct(void);
-
- void msg_pots_cfg_destroy(msg_pots_cfg * cfg);
-
- void msg_pots_cfg_printf(const msg_pots_cfg * msg_pots_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "msg_powers.h"
+ #include <message/msg_powers.h>
msg_powers_obj * msg_powers_construct(const msg_powers_cfg * msg_powers_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MESSAGE_POWERS
-#define __ODAS_MESSAGE_POWERS
-
- /**
- * \file msg_powers.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../signal/env.h"
-
- typedef struct msg_powers_obj {
-
- unsigned long long timeStamp;
- unsigned int fS;
- envs_obj * envs;
-
- } msg_powers_obj;
-
- typedef struct msg_powers_cfg {
-
- unsigned int halfFrameSize;
- unsigned int nChannels;
- unsigned int fS;
-
- } msg_powers_cfg;
-
- msg_powers_obj * msg_powers_construct(const msg_powers_cfg * msg_powers_config);
-
- void msg_powers_destroy(msg_powers_obj * obj);
-
- void msg_powers_copy(msg_powers_obj * dest, const msg_powers_obj * src);
-
- void msg_powers_zero(msg_powers_obj * obj);
-
- unsigned int msg_powers_isZero(const msg_powers_obj * obj);
-
- msg_powers_cfg * msg_powers_cfg_construct(void);
-
- void msg_powers_cfg_destroy(msg_powers_cfg * msg_powers_config);
-
- void msg_powers_cfg_printf(const msg_powers_cfg * msg_powers_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "msg_spectra.h"
+ #include <message/msg_spectra.h>
msg_spectra_obj * msg_spectra_construct(const msg_spectra_cfg * msg_spectra_config) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MESSAGE_SPECTRA
-#define __ODAS_MESSAGE_SPECTRA
-
- /**
- * \file msg_spectra.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../signal/freq.h"
-
- typedef struct msg_spectra_obj {
-
- unsigned long long timeStamp;
- unsigned int fS;
- freqs_obj * freqs;
-
- } msg_spectra_obj;
-
- typedef struct msg_spectra_cfg {
-
- unsigned int halfFrameSize;
- unsigned int nChannels;
- unsigned int fS;
-
- } msg_spectra_cfg;
-
- msg_spectra_obj * msg_spectra_construct(const msg_spectra_cfg * msg_spectra_config);
-
- void msg_spectra_destroy(msg_spectra_obj * obj);
-
- void msg_spectra_copy(msg_spectra_obj * dest, const msg_spectra_obj * src);
-
- void msg_spectra_zero(msg_spectra_obj * obj);
-
- unsigned int msg_spectra_isZero(const msg_spectra_obj * obj);
-
- msg_spectra_cfg * msg_spectra_cfg_construct(void);
-
- void msg_spectra_cfg_destroy(msg_spectra_cfg * msg_spectra_config);
-
- void msg_spectra_cfg_printf(const msg_spectra_cfg * msg_spectra_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "msg_targets.h"
+ #include <message/msg_targets.h>
msg_targets_obj * msg_targets_construct(const msg_targets_cfg * cfg) {
printf("nTargets = %u\n", msg_targets_config->nTargets);
printf("fS = %u\n", msg_targets_config->fS);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MESSAGE_TARGETS
-#define __ODAS_MESSAGE_TARGETS
-
- /**
- * \file msg_targets.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include "../signal/target.h"
-
- typedef struct msg_targets_obj {
-
- unsigned long long timeStamp;
- unsigned int fS;
- targets_obj * targets;
-
- } msg_targets_obj;
-
- typedef struct msg_targets_cfg {
-
- unsigned int nTargets;
- unsigned int fS;
-
- } msg_targets_cfg;
-
- msg_targets_obj * msg_targets_construct(const msg_targets_cfg * cfg);
-
- void msg_targets_destroy(msg_targets_obj * obj);
-
- void msg_targets_copy(msg_targets_obj * dest, const msg_targets_obj * src);
-
- void msg_targets_zero(msg_targets_obj * obj);
-
- unsigned int msg_targets_isZero(const msg_targets_obj * obj);
-
- msg_targets_cfg * msg_targets_cfg_construct(void);
-
- void msg_targets_cfg_destroy(msg_targets_cfg * cfg);
-
- void msg_targets_cfg_printf(const msg_targets_cfg * msg_targets_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "msg_tracks.h"
+ #include <message/msg_tracks.h>
msg_tracks_obj * msg_tracks_construct(const msg_tracks_cfg * cfg) {
printf("nTracks = %u\n", msg_tracks_config->nTracks);
printf("fS = %u\n", msg_tracks_config->fS);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MESSAGE_TRACKS
-#define __ODAS_MESSAGE_TRACKS
-
- /**
- * \file msg_tracks.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include "../signal/track.h"
-
- typedef struct msg_tracks_obj {
-
- unsigned long long timeStamp;
- unsigned int fS;
- tracks_obj * tracks;
-
- } msg_tracks_obj;
-
- typedef struct msg_tracks_cfg {
-
- unsigned int nTracks;
- unsigned int fS;
-
- } msg_tracks_cfg;
-
- msg_tracks_obj * msg_tracks_construct(const msg_tracks_cfg * cfg);
-
- void msg_tracks_destroy(msg_tracks_obj * obj);
-
- void msg_tracks_copy(msg_tracks_obj * dest, const msg_tracks_obj * src);
-
- void msg_tracks_zero(msg_tracks_obj * obj);
-
- unsigned int msg_tracks_isZero(const msg_tracks_obj * obj);
-
- msg_tracks_cfg * msg_tracks_cfg_construct(void);
-
- void msg_tracks_cfg_destroy(msg_tracks_cfg * cfg);
-
- void msg_tracks_cfg_printf(const msg_tracks_cfg * msg_tracks_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "mod_classify.h"
+ #include <module/mod_classify.h>
mod_classify_obj * mod_classify_construct(const mod_classify_cfg * mod_classify_config, const msg_hops_cfg * msg_hops_config, const msg_tracks_cfg * msg_tracks_config, const msg_categories_cfg * msg_categories_config) {
void mod_classify_cfg_printf(const mod_classify_cfg * cfg) {
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MODULE_CLASSIFY
-#define __ODAS_MODULE_CLASSIFY
-
- /**
- * \file mod_classify.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
-
- #include "../message/msg_hops.h"
- #include "../message/msg_tracks.h"
- #include "../message/msg_categories.h"
-
- #include "../signal/acorr.h"
- #include "../signal/category.h"
- #include "../signal/frame.h"
- #include "../signal/freq.h"
- #include "../signal/hop.h"
- #include "../signal/pitch.h"
-
- #include "../system/acorr2pitch.h"
- #include "../system/frame2freq.h"
- #include "../system/freq2acorr.h"
- #include "../system/hop2frame.h"
- #include "../system/pitch2category.h"
-
- typedef struct mod_classify_obj {
-
- frames_obj * frames;
- freqs_obj * freqs;
- acorrs_obj * acorrs;
- pitches_obj * pitches;
-
- hop2frame_obj * hop2frame;
- frame2freq_obj * frame2freq;
- freq2acorr_obj * freq2acorr;
- acorr2pitch_obj * acorr2pitch;
- pitch2category_obj * pitch2category;
-
- msg_hops_obj * in1;
- msg_tracks_obj * in2;
- msg_categories_obj * out;
-
- } mod_classify_obj;
-
- typedef struct mod_classify_cfg {
-
- unsigned int frameSize;
- unsigned int winSize;
-
- float tauMin;
- float tauMax;
- float deltaTauMax;
- float alpha;
- float gamma;
- float phiMin;
- float r0;
-
- } mod_classify_cfg;
-
- mod_classify_obj * mod_classify_construct(const mod_classify_cfg * mod_classify_config, const msg_hops_cfg * msg_hops_config, const msg_tracks_cfg * msg_tracks_config, const msg_categories_cfg * msg_categories_config);
-
- void mod_classify_destroy(mod_classify_obj * obj);
-
- int mod_classify_process(mod_classify_obj * obj);
-
- void mod_classify_connect(mod_classify_obj * obj, msg_hops_obj * in1, msg_tracks_obj * in2, msg_categories_obj * out);
-
- void mod_classify_disconnect(mod_classify_obj * obj);
-
- mod_classify_cfg * mod_classify_cfg_construct(void);
-
- void mod_classify_cfg_destroy(mod_classify_cfg * cfg);
-
- void mod_classify_cfg_printf(const mod_classify_cfg * cfg);
-
-#endif
\ No newline at end of file
*
*/
- #include "mod_istft.h"
+ #include <module/mod_istft.h>
mod_istft_obj * mod_istft_construct(const mod_istft_cfg * mod_istft_config, const msg_spectra_cfg * msg_spectra_config, const msg_hops_cfg * msg_hops_config) {
void mod_istft_cfg_printf(const mod_istft_cfg * cfg) {
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MODULE_ISTFT
-#define __ODAS_MODULE_ISTFT
-
- /**
- * \file mod_istft.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../system/freq2frame.h"
- #include "../signal/frame.h"
- #include "../system/frame2hop.h"
-
- #include "../message/msg_hops.h"
- #include "../message/msg_spectra.h"
-
- typedef struct mod_istft_obj {
-
- freq2frame_obj * freq2frame;
- frames_obj * frames;
- frame2hop_obj * frame2hop;
-
- msg_spectra_obj * in;
- msg_hops_obj * out;
-
- } mod_istft_obj;
-
- typedef struct mod_istft_cfg {
-
- } mod_istft_cfg;
-
- mod_istft_obj * mod_istft_construct(const mod_istft_cfg * mod_istft_config, const msg_spectra_cfg * msg_spectra_config, const msg_hops_cfg * msg_hops_config);
-
- void mod_istft_destroy(mod_istft_obj * obj);
-
- int mod_istft_process(mod_istft_obj * obj);
-
- void mod_istft_connect(mod_istft_obj * obj, msg_spectra_obj * in, msg_hops_obj * out);
-
- void mod_istft_disconnect(mod_istft_obj * obj);
-
- mod_istft_cfg * mod_istft_cfg_construct(void);
-
- void mod_istft_cfg_destroy(mod_istft_cfg * cfg);
-
- void mod_istft_cfg_printf(const mod_istft_cfg * cfg);
-
-#endif
\ No newline at end of file
*
*/
- #include "mod_mapping.h"
+ #include <module/mod_mapping.h>
mod_mapping_obj * mod_mapping_construct(const mod_mapping_cfg * mod_mapping_config, const msg_hops_cfg * msg_hops_config) {
printf("links:"); links_printf(cfg->links);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MODULE_MAPPING
-#define __ODAS_MODULE_MAPPING
-
- /**
- * \file mod_mapping.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../message/msg_hops.h"
- #include "../message/msg_spectra.h"
-
- #include "../general/link.h"
- #include "../system/hop2hop.h"
-
- typedef struct mod_mapping_obj {
-
- hop2hop_multiplex_obj * hop2hop_multiplex;
- links_obj * links;
-
- msg_hops_obj * in;
- msg_hops_obj * out;
-
- } mod_mapping_obj;
-
- typedef struct mod_mapping_cfg {
-
- links_obj * links;
-
- } mod_mapping_cfg;
-
- mod_mapping_obj * mod_mapping_construct(const mod_mapping_cfg * mod_mapping_config, const msg_hops_cfg * msg_hops_config);
-
- void mod_mapping_destroy(mod_mapping_obj * obj);
-
- int mod_mapping_process(mod_mapping_obj * obj);
-
- void mod_mapping_connect(mod_mapping_obj * obj, msg_hops_obj * in, msg_hops_obj * out);
-
- void mod_mapping_disconnect(mod_mapping_obj * obj);
-
- mod_mapping_cfg * mod_mapping_cfg_construct(void);
-
- void mod_mapping_cfg_destroy(mod_mapping_cfg * cfg);
-
- void mod_mapping_cfg_printf(const mod_mapping_cfg * cfg);
-
-#endif
\ No newline at end of file
*
*/
- #include "mod_noise.h"
+ #include <module/mod_noise.h>
mod_noise_obj * mod_noise_construct(const mod_noise_cfg * mod_noise_config, const msg_spectra_cfg * msg_spectra_config, const msg_powers_cfg * msg_powers_config) {
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MODULE_NOISE
-#define __ODAS_MODULE_NOISE
-
- /**
- * \file mod_noise.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../system/freq2env.h"
- #include "../system/env2env.h"
- #include "../message/msg_spectra.h"
- #include "../message/msg_powers.h"
-
- typedef struct mod_noise_obj {
-
- freq2env_obj * freq2env;
- envs_obj * envs;
- env2env_mcra_obj * env2env_mcra;
-
- msg_spectra_obj * in;
- msg_powers_obj * out;
-
- } mod_noise_obj;
-
- typedef struct mod_noise_cfg {
-
- unsigned int bSize;
- float alphaS;
- unsigned int L;
- float delta;
- float alphaD;
-
- } mod_noise_cfg;
-
- mod_noise_obj * mod_noise_construct(const mod_noise_cfg * mod_noise_config, const msg_spectra_cfg * msg_spectra_config, const msg_powers_cfg * msg_powers_config);
-
- void mod_noise_destroy(mod_noise_obj * obj);
-
- int mod_noise_process(mod_noise_obj * obj);
-
- void mod_noise_connect(mod_noise_obj * obj, msg_spectra_obj * in, msg_powers_obj * out);
-
- void mod_noise_disconnect(mod_noise_obj * obj);
-
- mod_noise_cfg * mod_noise_cfg_construct(void);
-
- void mod_noise_cfg_destroy(mod_noise_cfg * cfg);
-
- void mod_noise_cfg_printf(const mod_noise_cfg * cfg);
-
-#endif
\ No newline at end of file
*
*/
- #include "mod_resample.h"
+ #include <module/mod_resample.h>
mod_resample_obj * mod_resample_construct(const mod_resample_cfg * mod_resample_config, const msg_hops_cfg * msg_hops_in_config, const msg_hops_cfg * msg_hops_out_config) {
+++ /dev/null
-#ifndef __ODAS_MODULE_RS
-#define __ODAS_MODULE_RS
-
- /**
- * \file mod_rs.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
-
- #include "../message/msg_hops.h"
-
- #include "../signal/hop.h"
- #include "../signal/frame.h"
- #include "../signal/freq.h"
-
- #include "../system/hop2frame.h"
- #include "../system/hop2hop.h"
- #include "../system/frame2freq.h"
- #include "../system/freq2freq.h"
- #include "../system/freq2frame.h"
- #include "../system/frame2hop.h"
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <math.h>
-
- typedef struct mod_resample_obj {
-
- unsigned long long timeStamp;
- char noMorePush;
-
- char type;
-
- unsigned int nChannels;
- unsigned int fSin;
- unsigned int fSout;
- unsigned int hopSizeIn;
- unsigned int hopSizeOut;
- float ratio;
-
- unsigned int frameSize;
- unsigned int halfFrameSize;
- unsigned int lowPassCut;
-
- hop2hop_buffer_obj * hop2hop;
-
- hop2frame_obj * hop2frame;
- frames_obj * framesAnalysis;
- frame2freq_obj * frame2freq;
- freqs_obj * freqsAnalysis;
- freq2freq_lowpass_obj * freq2freq_lowpass;
- freqs_obj * freqsSynthesis;
- freq2frame_obj * freq2frame;
- frames_obj * framesSynthesis;
- frame2hop_obj * frame2hop;
- hops_obj * hops;
-
- msg_hops_obj * in;
- msg_hops_obj * out;
-
- } mod_resample_obj;
-
- typedef struct mod_resample_cfg {
-
- unsigned int fSin;
- unsigned int fSout;
-
- } mod_resample_cfg;
-
- mod_resample_obj * mod_resample_construct(const mod_resample_cfg * mod_resample_config, const msg_hops_cfg * msg_hops_in_config, const msg_hops_cfg * msg_hops_out_config);
-
- void mod_resample_destroy(mod_resample_obj * obj);
-
- int mod_resample_process_push(mod_resample_obj * obj);
-
- int mod_resample_process_pop(mod_resample_obj * obj);
-
- int mod_resample_process_push_down(mod_resample_obj * obj);
-
- int mod_resample_process_push_up(mod_resample_obj * obj);
-
- int mod_resample_process_push_same(mod_resample_obj * obj);
-
- int mod_resample_process_pop_down(mod_resample_obj * obj);
-
- int mod_resample_process_pop_up(mod_resample_obj * obj);
-
- int mod_resample_process_pop_same(mod_resample_obj * obj);
-
- void mod_resample_connect(mod_resample_obj * obj, msg_hops_obj * in, msg_hops_obj * out);
-
- void mod_resample_disconnect(mod_resample_obj * obj);
-
- mod_resample_cfg * mod_resample_cfg_construct(void);
-
- void mod_resample_cfg_destroy(mod_resample_cfg * cfg);
-
- void mod_resample_cfg_printf(const mod_resample_cfg * cfg);
-
-#endif
\ No newline at end of file
*
*/
- #include "mod_ssl.h"
+ #include <module/mod_ssl.h>
mod_ssl_obj * mod_ssl_construct(const mod_ssl_cfg * mod_ssl_config, const msg_spectra_cfg * msg_spectra_config, const msg_pots_cfg * msg_pots_config) {
printf("nThetas = %u\n", cfg->nThetas);
printf("gainMin = %f\n", cfg->gainMin);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MODULE_SSL
-#define __ODAS_MODULE_SSL
-
- /**
- * \file mod_ssl.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
-
- #include "../general/mic.h"
- #include "../general/samplerate.h"
- #include "../general/soundspeed.h"
- #include "../general/spatialfilter.h"
-
- #include "../signal/aimg.h"
- #include "../signal/env.h"
- #include "../signal/freq.h"
- #include "../signal/xcorr.h"
-
- #include "../system/env2env.h"
- #include "../system/freq2env.h"
- #include "../system/freq2freq.h"
- #include "../system/freq2xcorr.h"
- #include "../system/xcorr2aimg.h"
- #include "../system/xcorr2xcorr.h"
-
- #include "../init/scanning.h"
-
- #include "../message/msg_spectra.h"
- #include "../message/msg_powers.h"
- #include "../message/msg_pots.h"
-
-
- typedef struct mod_ssl_obj {
-
- unsigned int nChannels;
- unsigned int nPairs;
- unsigned int nPots;
- unsigned int nLevels;
- unsigned int frameSize;
- unsigned int halfFrameSize;
- unsigned int frameSizeInterp;
- unsigned int halfFrameSizeInterp;
- unsigned int interpRate;
-
- scans_obj * scans;
-
- freqs_obj * phasors;
- freqs_obj * products;
- freqs_obj * productsInterp;
- xcorrs_obj * xcorrs;
- xcorrs_obj * xcorrsMax;
-
- freq2env_obj * freq2env;
- freq2freq_phasor_obj * freq2freq_phasor;
- freq2freq_product_obj * freq2freq_product;
- freq2freq_interpolate_obj * freq2freq_interpolate;
- freq2xcorr_obj * freq2xcorr;
- xcorr2xcorr_obj * xcorr2xcorr;
-
- aimg_obj ** aimgs;
- xcorr2aimg_obj ** xcorr2aimg;
-
- pots_obj * pots;
-
- msg_spectra_obj * in;
- msg_pots_obj * out;
-
- } mod_ssl_obj;
-
- typedef struct mod_ssl_cfg {
-
- mics_obj * mics;
- samplerate_obj * samplerate;
- soundspeed_obj * soundspeed;
- spatialfilter_obj * spatialfilter;
-
- unsigned int interpRate;
- float epsilon;
- unsigned int nLevels;
- unsigned int * levels;
- signed int * deltas;
- unsigned int nMatches;
- float probMin;
- unsigned int nRefinedLevels;
- unsigned int nThetas;
- float gainMin;
-
- } mod_ssl_cfg;
-
- mod_ssl_obj * mod_ssl_construct(const mod_ssl_cfg * mod_ssl_config, const msg_spectra_cfg * msg_spectra_config, const msg_pots_cfg * msg_pots_config);
-
- void mod_ssl_destroy(mod_ssl_obj * obj);
-
- int mod_ssl_process(mod_ssl_obj * obj);
-
- void mod_ssl_connect(mod_ssl_obj * obj, msg_spectra_obj * in, msg_pots_obj * out);
-
- void mod_ssl_disconnect(mod_ssl_obj * obj);
-
- mod_ssl_cfg * mod_ssl_cfg_construct(void);
-
- void mod_ssl_cfg_destroy(mod_ssl_cfg * cfg);
-
- void mod_ssl_cfg_printf(const mod_ssl_cfg * cfg);
-
-#endif
\ No newline at end of file
*
*/
- #include "mod_sss.h"
+ #include <module/mod_sss.h>
#include <stdio.h>
// Empty
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MODULE_SSS
-#define __ODAS_MODULE_SSS
-
- /**
- * \file mod_sss.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../general/mic.h"
- #include "../general/samplerate.h"
- #include "../general/soundspeed.h"
- #include "../general/spatialfilter.h"
-
- #include "../init/directivity.h"
-
- #include "../message/msg_powers.h"
- #include "../message/msg_spectra.h"
- #include "../message/msg_tracks.h"
-
- #include "../signal/beampattern.h"
- #include "../signal/steer.h"
- #include "../signal/gain.h"
- #include "../signal/demixing.h"
- #include "../signal/env.h"
-
- #include "../system/demixing2env.h"
- #include "../system/demixing2freq.h"
- #include "../system/env2env.h"
- #include "../system/freq2env.h"
- #include "../system/freq2freq.h"
- #include "../system/gain2mask.h"
- #include "../system/track2steer.h"
- #include "../system/track2gain.h"
- #include "../system/steer2demixing.h"
-
- #include <stdlib.h>
- #include <string.h>
-
- typedef struct mod_sss_obj {
-
- unsigned int nSeps;
- unsigned int nChannels;
- unsigned int halfFrameSize;
-
- char mode_sep;
- char mode_pf;
-
- beampatterns_obj * sep_ds_beampatterns_mics;
- beampatterns_obj * sep_ds_beampatterns_spatialfilter;
- steers_obj * sep_ds_steers;
- gains_obj * sep_ds_gains;
- masks_obj * sep_ds_masks;
- tracks_obj * sep_ds_tracksPrev;
- tracks_obj * sep_ds_tracksNow;
- track2gain_obj * sep_ds_track2gain;
- gain2mask_obj * sep_ds_gain2mask;
- track2steer_obj * sep_ds_track2steer;
- steer2demixing_ds_obj * sep_ds_steer2demixing;
- demixings_obj * sep_ds_demixingsPrev;
- demixings_obj * sep_ds_demixingsNow;
- demixing2freq_obj * sep_ds_demixing2freq;
-
- beampatterns_obj * sep_gss_beampatterns_mics;
- beampatterns_obj * sep_gss_beampatterns_spatialfilter;
- steers_obj * sep_gss_steers;
- gains_obj * sep_gss_gains;
- masks_obj * sep_gss_masks;
- tracks_obj * sep_gss_tracksPrev;
- tracks_obj * sep_gss_tracksNow;
- track2gain_obj * sep_gss_track2gain;
- gain2mask_obj * sep_gss_gain2mask;
- track2steer_obj * sep_gss_track2steer;
- steer2demixing_gss_obj * sep_gss_steer2demixing;
- demixings_obj * sep_gss_demixingsPrev;
- demixings_obj * sep_gss_demixingsNow;
- demixing2freq_obj * sep_gss_demixing2freq;
-
- masks_obj * sep_masks;
- demixings_obj * sep_demixings;
-
- freq2env_obj * pf_ms_freq2env;
- envs_obj * pf_ms_noisys;
- demixing2env_obj * pf_ms_demixing2env;
- envs_obj * pf_ms_noisesEst;
- env2env_mcra_obj * pf_ms_env2env_mcra;
- envs_obj * pf_ms_noisesSep;
- env2env_interf_obj * pf_ms_env2env_interf;
- envs_obj * pf_ms_interfs;
- env2env_gainspeech_obj * pf_ms_env2env_gainspeech;
- envs_obj * pf_ms_gainspeeches;
- envs_obj * pf_ms_snrs;
- envs_obj * pf_ms_vs;
- env2env_probspeech_obj * pf_ms_env2env_probspeech;
- envs_obj * pf_ms_probspeeches;
- env2env_gainall_obj * pf_ms_env2env_gainall;
- envs_obj * pf_ms_gainalls;
- freq2freq_gain_obj * pf_ms_freq2freq_gain;
-
- freq2env_obj * pf_ss_freq2env_channels;
- envs_obj * pf_ss_env_channels;
- demixing2env_obj * pf_ss_demixing2env;
- envs_obj * pf_ss_env_channelseps;
- freq2env_obj * pf_ss_freq2env_seps;
- envs_obj * pf_ss_env_seps;
- env2env_gainratio_obj * pf_ss_env2env_gainratio;
- envs_obj * pf_ss_gainratio;
- freq2freq_gain_obj * pf_ss_freq2freq_gain;
-
- msg_spectra_obj * in1;
- msg_powers_obj * in2;
- msg_tracks_obj * in3;
- msg_spectra_obj * out1;
- msg_spectra_obj * out2;
-
- FILE * tmpFp;
-
- } mod_sss_obj;
-
- typedef struct mod_sss_cfg {
-
- char mode_sep;
- char mode_pf;
-
- unsigned int nThetas;
- float gainMin;
-
- float epsilon;
-
- mics_obj * mics;
- samplerate_obj * samplerate;
- soundspeed_obj * soundspeed;
- spatialfilter_obj * spatialfilter;
-
- float sep_gss_lambda;
- float sep_gss_mu;
-
- unsigned int pf_ms_bSize;
- float pf_ms_alphaS;
- unsigned int pf_ms_L;
- float pf_ms_delta;
- float pf_ms_alphaD;
-
- float pf_ms_eta;
- float pf_ms_alphaZ;
- float pf_ms_alphaPmin;
- float pf_ms_thetaWin;
- float pf_ms_alphaWin;
- float pf_ms_maxAbsenceProb;
- float pf_ms_Gmin;
- unsigned int pf_ms_winSizeLocal;
- unsigned int pf_ms_winSizeGlobal;
- unsigned int pf_ms_winSizeFrame;
-
- float pf_ss_Gmin;
- float pf_ss_Gmid;
- float pf_ss_Gslope;
-
- } mod_sss_cfg;
-
- mod_sss_obj * mod_sss_construct(const mod_sss_cfg * mod_sss_config, const msg_tracks_cfg * msg_tracks_config, const msg_spectra_cfg * msg_spectra_config);
-
- void mod_sss_destroy(mod_sss_obj * obj);
-
- int mod_sss_process(mod_sss_obj * obj);
-
- int mod_sss_process_dds(mod_sss_obj * obj);
-
- int mod_sss_process_dgss(mod_sss_obj * obj);
-
- int mod_sss_process_sspf(mod_sss_obj * obj);
-
- int mod_sss_process_mspf(mod_sss_obj * obj);
-
- void mod_sss_connect(mod_sss_obj * obj, msg_spectra_obj * in1, msg_powers_obj * in2, msg_tracks_obj * in3, msg_spectra_obj * out1, msg_spectra_obj * out2);
-
- void mod_sss_disconnect(mod_sss_obj * obj);
-
- mod_sss_cfg * mod_sss_cfg_construct(void);
-
- void mod_sss_cfg_destroy(mod_sss_cfg * cfg);
-
- void mod_sss_cfg_printf(const mod_sss_cfg * cfg);
-
-#endif
\ No newline at end of file
*
*/
- #include "mod_sst.h"
+ #include <module/mod_sst.h>
mod_sst_obj * mod_sst_construct(const mod_sst_cfg * mod_sst_config, const mod_ssl_cfg * mod_ssl_config, const msg_pots_cfg * msg_pots_config, const msg_targets_cfg * msg_targets_config, const msg_tracks_cfg * msg_tracks_config) {
printf("theta_inactive = %f\n", cfg->theta_inactive);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MODULE_SST
-#define __ODAS_MODULE_SST
-
- /**
- * \file mod_sst.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <math.h>
-
- #include "../general/mic.h"
-
- #include "../signal/coherence.h"
- #include "../signal/kalman.h"
- #include "../signal/mixture.h"
- #include "../signal/particle.h"
-
- #include "../system/kalman2kalman.h"
- #include "../system/particle2particle.h"
- #include "../system/kalman2coherence.h"
- #include "../system/particle2coherence.h"
- #include "../system/mixture2mixture.h"
-
- #include "../message/msg_pots.h"
- #include "../message/msg_targets.h"
- #include "../message/msg_tracks.h"
- #include "../module/mod_ssl.h"
-
- typedef struct mod_sst_obj {
-
- unsigned int nPots;
- unsigned int nTracksMax;
- unsigned int nTracks;
- unsigned int nTargetsMax;
-
- char mode;
- char add;
-
- mixture_obj ** mixtures;
- coherences_obj ** coherences;
- postprobs_obj ** postprobs;
-
- unsigned long long * ids;
- unsigned long long * idsAdded;
- unsigned long long * idsRemoved;
- char ** tags;
-
- char * type;
-
- kalman_obj ** kalmans;
- kalman2kalman_obj * kalman2kalman_prob;
- kalman2kalman_obj * kalman2kalman_active;
- kalman2kalman_obj * kalman2kalman_target;
- kalman2coherence_obj * kalman2coherence_prob;
- kalman2coherence_obj * kalman2coherence_active;
- kalman2coherence_obj * kalman2coherence_target;
-
- particles_obj ** particles;
- particle2particle_obj * particle2particle_prob;
- particle2particle_obj * particle2particle_active;
- particle2particle_obj * particle2particle_target;
- particle2coherence_obj * particle2coherence_prob;
- particle2coherence_obj * particle2coherence_active;
- particle2coherence_obj * particle2coherence_target;
-
- mixture2mixture_obj * mixture2mixture;
-
- float * sourceActivities;
-
- float theta_new;
- unsigned int N_prob;
- float theta_prob;
- unsigned int * N_inactive;
- float theta_inactive;
-
- unsigned int * n_prob;
- float * mean_prob;
- unsigned int * n_inactive;
-
- unsigned long long id;
-
- msg_pots_obj * in1;
- msg_targets_obj * in2;
- msg_tracks_obj * out;
-
- } mod_sst_obj;
-
- typedef struct mod_sst_cfg {
-
- char mode;
- char add;
-
- unsigned int nTracksMax;
- unsigned int hopSize;
-
- float sigmaQ;
-
- unsigned int nParticles;
- float st_alpha;
- float st_beta;
- float st_ratio;
- float ve_alpha;
- float ve_beta;
- float ve_ratio;
- float ac_alpha;
- float ac_beta;
- float ac_ratio;
- float Nmin;
-
- float epsilon;
- float sigmaR_active;
- float sigmaR_prob;
- float sigmaR_target;
- gaussians_1d_obj * active_gmm;
- gaussians_1d_obj * inactive_gmm;
- float Pfalse;
- float Pnew;
- float Ptrack;
-
- float theta_new;
- unsigned int N_prob;
- float theta_prob;
- unsigned int * N_inactive;
- float theta_inactive;
-
- } mod_sst_cfg;
-
- mod_sst_obj * mod_sst_construct(const mod_sst_cfg * mod_sst_config, const mod_ssl_cfg * mod_ssl_config, const msg_pots_cfg * msg_pots_config, const msg_targets_cfg * msg_targets_config, const msg_tracks_cfg * msg_tracks_config);
-
- void mod_sst_destroy(mod_sst_obj * obj);
-
- int mod_sst_process(mod_sst_obj * obj);
-
- void mod_sst_connect(mod_sst_obj * obj, msg_pots_obj * in1, msg_targets_obj * in2, msg_tracks_obj * out);
-
- void mod_sst_disconnect(mod_sst_obj * obj);
-
- mod_sst_cfg * mod_sst_cfg_construct(void);
-
- void mod_sst_cfg_destroy(mod_sst_cfg * cfg);
-
- void mod_sst_cfg_printf(const mod_sst_cfg * cfg);
-
-#endif
\ No newline at end of file
*
*/
- #include "mod_stft.h"
+ #include <module/mod_stft.h>
mod_stft_obj * mod_stft_construct(const mod_stft_cfg * mod_stft_config, const msg_hops_cfg * msg_hops_config, const msg_spectra_cfg * msg_spectra_config) {
void mod_stft_cfg_printf(const mod_stft_cfg * cfg) {
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MODULE_STFT
-#define __ODAS_MODULE_STFT
-
- /**
- * \file mod_stft.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../system/hop2frame.h"
- #include "../signal/frame.h"
- #include "../system/frame2freq.h"
- #include "../message/msg_hops.h"
- #include "../message/msg_spectra.h"
-
- typedef struct mod_stft_obj {
-
- hop2frame_obj * hop2frame;
- frames_obj * frames;
- frame2freq_obj * frame2freq;
-
- msg_hops_obj * in;
- msg_spectra_obj * out;
-
- } mod_stft_obj;
-
- typedef struct mod_stft_cfg {
-
- } mod_stft_cfg;
-
- mod_stft_obj * mod_stft_construct(const mod_stft_cfg * mod_stft_config, const msg_hops_cfg * msg_hops_config, const msg_spectra_cfg * msg_spectra_config);
-
- void mod_stft_destroy(mod_stft_obj * obj);
-
- int mod_stft_process(mod_stft_obj * obj);
-
- void mod_stft_connect(mod_stft_obj * obj, msg_hops_obj * in, msg_spectra_obj * out);
-
- void mod_stft_disconnect(mod_stft_obj * obj);
-
- mod_stft_cfg * mod_stft_cfg_construct(void);
-
- void mod_stft_cfg_destroy(mod_stft_cfg * cfg);
-
- void mod_stft_cfg_printf(const mod_stft_cfg * cfg);
-
-#endif
\ No newline at end of file
*
*/
- #include "mod_volume.h"
+ #include <module/mod_volume.h>
mod_volume_obj * mod_volume_construct(const mod_volume_cfg * mod_volume_config, const msg_hops_cfg * msg_hops_config) {
void mod_volume_cfg_printf(const mod_volume_cfg * cfg) {
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_MODULE_VOLUME
-#define __ODAS_MODULE_VOLUME
-
- /**
- * \file mod_volume.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../system/hop2hop.h"
- #include "../message/msg_hops.h"
-
- typedef struct mod_volume_obj {
-
- hop2hop_gain_obj * hop2hop_gain;
-
- msg_hops_obj * in;
- msg_hops_obj * out;
-
- } mod_volume_obj;
-
- typedef struct mod_volume_cfg {
-
- float gain;
-
- } mod_volume_cfg;
-
- mod_volume_obj * mod_volume_construct(const mod_volume_cfg * mod_volume_config, const msg_hops_cfg * msg_hops_config);
-
- void mod_volume_destroy(mod_volume_obj * obj);
-
- int mod_volume_process(mod_volume_obj * obj);
-
- void mod_volume_connect(mod_volume_obj * obj, msg_hops_obj * in, msg_hops_obj * out);
-
- void mod_volume_disconnect(mod_volume_obj * obj);
-
- mod_volume_cfg * mod_volume_cfg_construct(void);
-
- void mod_volume_cfg_destroy(mod_volume_cfg * cfg);
-
- void mod_volume_cfg_printf(const mod_volume_cfg * cfg);
-
-#endif
\ No newline at end of file
*
*/
- #include "acorr.h"
+ #include <signal/acorr.h>
acorrs_obj * acorrs_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize) {
+++ /dev/null
-#ifndef __ODAS_SIGNAL_ACORR
-#define __ODAS_SIGNAL_ACORR
-
- /**
- * \file acorr.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct acorrs_obj {
-
- unsigned int nSignals;
- unsigned int halfFrameSize;
- float ** array;
-
- } acorrs_obj;
-
- acorrs_obj * acorrs_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize);
-
- void acorrs_destroy(acorrs_obj * obj);
-
- void acorrs_copy(acorrs_obj * dest, const acorrs_obj * src);
-
- void acorrs_zero(acorrs_obj * obj);
-
- void acorrs_printf(const acorrs_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "aimg.h"
+ #include <signal/aimg.h>
aimg_obj * aimg_construct_zero(const unsigned int aimgSize) {
printf("\n");
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_AIMG
-#define __ODAS_SIGNAL_AIMG
-
- /**
- * \file aimg.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct aimg_obj {
-
- unsigned int aimgSize;
- float * array;
-
- } aimg_obj;
-
- aimg_obj * aimg_construct_zero(const unsigned int aimgSize);
-
- void aimg_destroy(aimg_obj * obj);
-
- void aimg_printf(const aimg_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "area.h"
+ #include <signal/area.h>
areas_obj * areas_construct_zero(const unsigned int nPointsDiscrete, const unsigned int nResolutionsPerDiscrete, const unsigned int nPairs) {
+++ /dev/null
-#ifndef __ODAS_SIGNAL_AREA
-#define __ODAS_SIGNAL_AREA
-
- /**
- * \file area.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct areas_obj {
-
- unsigned int nPointsDiscrete;
- unsigned int nResolutionsPerDiscrete;
- unsigned int nPairs;
-
- float * array;
-
- } areas_obj;
-
- typedef struct area_obj {
-
- unsigned int nPairs;
-
- float * array;
-
- } area_obj;
-
- areas_obj * areas_construct_zero(const unsigned int nPointsDiscrete, const unsigned int nResolutionsPerDiscrete, const unsigned int nPairs);
-
- void areas_destroy(areas_obj * obj);
-
- void areas_printf(const areas_obj * obj);
-
- area_obj * area_construct_zero(const unsigned int nPairs);
-
- void area_destroy(area_obj * obj);
-
- void area_printf(const area_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "assignation.h"
+ #include <signal/assignation.h>
assignations_obj * assignations_construct_zero(const unsigned int nAssignations, const unsigned int nPots) {
+++ /dev/null
-#ifndef __ODAS_SIGNAL_ASSIGNATION
-#define __ODAS_SIGNAL_ASSIGNATION
-
- /**
- * \file assignation.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct assignations_obj {
-
- unsigned int nAssignations;
- unsigned int nPots;
- signed int * array;
-
- } assignations_obj;
-
- assignations_obj * assignations_construct_zero(const unsigned int nAssignations, const unsigned int nPots);
-
- void assignations_destroy(assignations_obj * obj);
-
- void assignations_printf(const assignations_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "beampattern.h"
+ #include <signal/beampattern.h>
beampatterns_obj * beampatterns_construct_zero(const unsigned int nChannels, const unsigned int nThetas) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_BEAMPATTERN
-#define __ODAS_SIGNAL_BEAMPATTERN
-
- /**
- * \file beampattern.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-
- typedef struct beampatterns_obj {
-
- unsigned int nChannels;
- unsigned int nThetas;
-
- float * minThetas;
- float * maxThetas;
- float * deltaThetas;
-
- float * gains;
-
- } beampatterns_obj;
-
- beampatterns_obj * beampatterns_construct_zero(const unsigned int nChannels, const unsigned int nThetas);
-
- void beampatterns_destroy(beampatterns_obj * obj);
-
- void beampatterns_printf(const beampatterns_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "category.h"
+ #include <signal/category.h>
categories_obj * categories_construct_zero(const unsigned int nSignals) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_CATEGORY
-#define __ODAS_SIGNAL_CATEGORY
-
- /**
- * \file category.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct categories_obj {
-
- unsigned int nSignals;
- char * array;
-
- } categories_obj;
-
- categories_obj * categories_construct_zero(const unsigned int nSignals);
-
- void categories_destroy(categories_obj * obj);
-
- void categories_copy(categories_obj * dest, const categories_obj * src);
-
- void categories_zero(categories_obj * obj);
-
- void categories_printf(const categories_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "coherence.h"
+ #include <signal/coherence.h>
coherences_obj * coherences_construct_zero(const unsigned int nPots, const unsigned int nTracks) {
+++ /dev/null
-#ifndef __ODAS_SIGNAL_COHERENCE
-#define __ODAS_SIGNAL_COHERENCE
-
- /**
- * \file coherence.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct coherences_obj {
-
- unsigned int nTracks;
- unsigned int nPots;
- float * array;
-
- } coherences_obj;
-
- coherences_obj * coherences_construct_zero(const unsigned int nTracks, const unsigned int nPots);
-
- void coherences_destroy(coherences_obj * obj);
-
- void coherences_printf(coherences_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "delta.h"
+ #include <signal/delta.h>
deltas_obj * deltas_construct_zero(const unsigned int nPairs) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_DELTA
-#define __ODAS_SIGNAL_DELTA
-
- /**
- * \file delta.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-
- typedef struct deltas_obj {
-
- unsigned int nPairs;
- unsigned int * array;
-
- } deltas_obj;
-
- deltas_obj * deltas_construct_zero(const unsigned int nPairs);
-
- deltas_obj * deltas_clone(const deltas_obj * obj);
-
- void deltas_destroy(deltas_obj * obj);
-
- void deltas_printf(const deltas_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "demixing.h"
+ #include <signal/demixing.h>
demixings_obj * demixings_construct_zero(const unsigned int halfFrameSize, const unsigned int nSeps, const unsigned int nChannels) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_DEMIXING
-#define __ODAS_SIGNAL_DEMIXING
-
- /**
- * \file demixing.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct demixings_obj {
-
- unsigned int nSeps;
- unsigned int nChannels;
- unsigned int halfFrameSize;
-
- float ** array;
-
- } demixings_obj;
-
- demixings_obj * demixings_construct_zero(const unsigned int halfFrameSize, const unsigned int nSeps, const unsigned int nChannels);
-
- void demixings_destroy(demixings_obj * obj);
-
- void demixings_copy(demixings_obj * dest, const demixings_obj * src);
-
- void demixings_zero(demixings_obj * obj);
-
- void demixings_printf(const demixings_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "env.h"
+ #include <signal/env.h>
envs_obj * envs_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_ENV
-#define __ODAS_SIGNAL_ENV
-
- /**
- * \file env.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct envs_obj {
-
- unsigned int nSignals;
- unsigned int halfFrameSize;
- float ** array;
-
- } envs_obj;
-
- envs_obj * envs_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize);
-
- envs_obj * envs_clone(const envs_obj * obj);
-
- void envs_copy(envs_obj * dest, const envs_obj * src);
-
- void envs_zero(envs_obj * obj);
-
- void envs_destroy(envs_obj * obj);
-
- void envs_printf(const envs_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "frame.h"
+ #include <signal/frame.h>
frames_obj * frames_construct_zero(const unsigned int nSignals, const unsigned int frameSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_FRAME
-#define __ODAS_SIGNAL_FRAME
-
- /**
- * \file frame.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct frames_obj {
-
- unsigned int nSignals;
- unsigned int frameSize;
- float ** array;
-
- } frames_obj;
-
- frames_obj * frames_construct_zero(const unsigned int nSignals, const unsigned int frameSize);
-
- frames_obj * frames_clone(const frames_obj * obj);
-
- void frames_destroy(frames_obj * obj);
-
- void frames_printf(const frames_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "freq.h"
+ #include <signal/freq.h>
freqs_obj * freqs_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_FREQ
-#define __ODAS_SIGNAL_FREQ
-
- /**
- * \file freq.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct freqs_obj {
-
- unsigned int nSignals;
- unsigned int halfFrameSize;
- float ** array;
-
- } freqs_obj;
-
- freqs_obj * freqs_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize);
-
- freqs_obj * freqs_clone(const freqs_obj * obj);
-
- void freqs_copy(freqs_obj * dest, const freqs_obj * src);
-
- void freqs_zero(freqs_obj * obj);
-
- void freqs_destroy(freqs_obj * obj);
-
- void freqs_printf(const freqs_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "gain.h"
+ #include <signal/gain.h>
gains_obj * gains_construct_zero(const unsigned int nSeps, const unsigned int nChannels) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_GAIN
-#define __ODAS_SIGNAL_GAIN
-
- /**
- * \file gain.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-
- typedef struct gains_obj {
-
- unsigned int nSeps;
- unsigned int nChannels;
- float * array;
-
- } gains_obj;
-
- gains_obj * gains_construct_zero(const unsigned int nSeps, const unsigned int nChannels);
-
- void gains_destroy(gains_obj * obj);
-
- void gains_printf(const gains_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "hop.h"
+ #include <signal/hop.h>
hops_obj * hops_construct_zero(const unsigned int nSignals, const unsigned int hopSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_HOP
-#define __ODAS_SIGNAL_HOP
-
- /**
- * \file hop.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct hops_obj {
-
- unsigned int nSignals;
- unsigned int hopSize;
- float ** array;
-
- } hops_obj;
-
- hops_obj * hops_construct_zero(const unsigned int nSignals, const unsigned int hopSize);
-
- hops_obj * hops_clone(const hops_obj * obj);
-
- void hops_copy(hops_obj * dest, const hops_obj * src);
-
- void hops_zero(hops_obj * obj);
-
- void hops_destroy(hops_obj * obj);
-
- void hops_printf(const hops_obj * obj);
-
-#endif
\ No newline at end of file
+++ /dev/null
-#ifndef __ODAS_SIGNAL_IMPULSE
-#define __ODAS_SIGNAL_IMPULSE
-
- /**
- * \file impulse.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
-
- typedef struct impulse_obj {
-
- float * array;
- unsigned int nCoefficients;
-
- } impulse_obj;
-
- impulse_obj * impulse_construct(const unsigned int nCoefficients);
-
- void impulse_destroy(impulse_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "index.h"
+ #include <signal/index.h>
indexes_obj * indexes_construct_zero(const unsigned int nCoarses, const unsigned int nFines) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_INDEX
-#define __ODAS_SIGNAL_INDEX
-
- /**
- * \file index.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct indexes_obj {
-
- unsigned int nCoarses;
- unsigned int nFines;
- unsigned int * array;
- unsigned int * count;
-
- } indexes_obj;
-
- indexes_obj * indexes_construct_zero(const unsigned int nCoarses, const unsigned int nFines);
-
- void indexes_destroy(indexes_obj * obj);
-
- void indexes_printf(const indexes_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "kalman.h"
+ #include <signal/kalman.h>
kalman_obj * kalman_construct_zero(void) {
+++ /dev/null
-#ifndef __ODAS_SIGNAL_KALMAN
-#define __ODAS_SIGNAL_KALMAN
-
- /**
- * \file kalman.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
-
- #include "../utils/matrix.h"
-
- typedef struct kalman_obj {
-
- matrix_obj * x_lm1lm1;
- matrix_obj * x_llm1;
- matrix_obj * P_lm1lm1;
- matrix_obj * P_llm1;
-
- } kalman_obj;
-
- kalman_obj * kalman_construct_zero(void);
-
- void kalman_destroy(kalman_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "map.h"
+ #include <signal/map.h>
maps_obj * maps_construct_zero(const unsigned int nCoarses, const unsigned int nFines) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_MAP
-#define __ODAS_SIGNAL_MAP
-
- /**
- * \file map.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct maps_obj {
-
- unsigned int nCoarses;
- unsigned int nFines;
- char * array;
-
- } maps_obj;
-
- maps_obj * maps_construct_zero(const unsigned int nCoarses, const unsigned int nFines);
-
- void maps_destroy(maps_obj * obj);
-
- void maps_printf(const maps_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "mask.h"
+ #include <signal/mask.h>
masks_obj * masks_construct_zero(const unsigned int nSeps, const unsigned int nChannels) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_MASK
-#define __ODAS_SIGNAL_MASK
-
- /**
- * \file mask.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-
- typedef struct masks_obj {
-
- unsigned int nSeps;
- unsigned int nChannels;
- char * array;
-
- } masks_obj;
-
- masks_obj * masks_construct_zero(const unsigned int nSeps, const unsigned int nChannels);
-
- void masks_destroy(masks_obj * obj);
-
- void masks_copy(masks_obj * dest, const masks_obj * src);
-
- void masks_printf(const masks_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "mixture.h"
+ #include <signal/mixture.h>
mixture_obj * mixture_construct_zero(const unsigned int nPots, const unsigned int nTracks) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_MIXTURE
-#define __ODAS_SIGNAL_MIXTURE
-
- /**
- * \file mixture.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- #include "../signal/assignation.h"
- #include "../init/combining.h"
-
- typedef struct mixture_obj {
-
- unsigned int nPots;
- unsigned int nTracks;
- unsigned int nTracksNewFalse;
- unsigned int nCombinations;
-
- assignations_obj * assignations;
-
- float * p_Ez_AICD;
- float * p_Eszs_phics;
- float * p_phics;
- float * p_Ez_phic;
- float * p_phic;
- float * p_phic_Ez;
-
- } mixture_obj;
-
- mixture_obj * mixture_construct_zero(const unsigned int nPots, const unsigned int nTracks);
-
- void mixture_destroy(mixture_obj * obj);
-
- void mixture_printf(const mixture_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "pair.h"
+ #include <signal/pair.h>
pairs_obj * pairs_construct_zero(const unsigned int nPairs) {
printf("(%02u): %d\n", iPair, obj->array[iPair]);
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_PAIR
-#define __ODAS_SIGNAL_PAIR
-
- /**
- * \file pair.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct pairs_obj {
-
- unsigned int nPairs;
- char * array;
-
- } pairs_obj;
-
- pairs_obj * pairs_construct_zero(const unsigned int nPairs);
-
- pairs_obj * pairs_clone(const pairs_obj * obj);
-
- void pairs_destroy(pairs_obj * obj);
-
- void pairs_printf(const pairs_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "particle.h"
+ #include <signal/particle.h>
particles_obj * particles_construct_zero(const unsigned int nParticles) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_PARTICLE
-#define __ODAS_SIGNAL_PARTICLE
-
- /**
- * \file particle.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct particles_obj {
-
- unsigned int nParticles;
- float * array;
- unsigned char * state;
-
- } particles_obj;
-
- particles_obj * particles_construct_zero(const unsigned int nParticles);
-
- void particles_destroy(particles_obj * obj);
-
- void particles_printf(const particles_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "pitch.h"
+ #include <signal/pitch.h>
pitches_obj * pitches_construct_zero(const unsigned int nSignals) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_PITCH
-#define __ODAS_SIGNAL_PITCH
-
- /**
- * \file pitch.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct pitches_obj {
-
- unsigned int nSignals;
- float * array;
-
- } pitches_obj;
-
- pitches_obj * pitches_construct_zero(const unsigned int nSignals);
-
- void pitches_destroy(pitches_obj * obj);
-
- void pitches_copy(pitches_obj * dest, const pitches_obj * src);
-
- void pitches_zero(pitches_obj * obj);
-
- void pitches_printf(const pitches_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "point.h"
+ #include <signal/point.h>
points_obj * points_construct_zero(const unsigned int nPoints) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_POINT
-#define __ODAS_SIGNAL_POINT
-
- /**
- * \file point.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct points_obj {
-
- unsigned int nPoints;
- float * array;
-
- } points_obj;
-
- points_obj * points_construct_zero(const unsigned int nPoints);
-
- points_obj * points_clone(const points_obj * obj);
-
- void points_destroy(points_obj * obj);
-
- void points_printf(const points_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "postprob.h"
+ #include <signal/postprob.h>
postprobs_obj * postprobs_construct_zero(const unsigned int nPots, const unsigned int nTracks) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_POSTPROB
-#define __ODAS_SIGNAL_POSTPROB
-
- /**
- * \file postprob.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct postprobs_obj {
-
- unsigned int nTracks;
- unsigned int nPots;
-
- float * arrayNew;
- float * arrayTrack;
- float * arrayTrackTotal;
-
- } postprobs_obj;
-
- postprobs_obj * postprobs_construct_zero(const unsigned int nPots, const unsigned int nTracks);
-
- void postprobs_destroy(postprobs_obj * obj);
-
- void postprobs_printf(const postprobs_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "pot.h"
+ #include <signal/pot.h>
pots_obj * pots_construct_zero(const unsigned int nPots) {
+++ /dev/null
-#ifndef __ODAS_SIGNAL_POT
-#define __ODAS_SIGNAL_POT
-
- /**
- * \file pot.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct pots_obj {
-
- unsigned int nPots;
- float * array;
-
- } pots_obj;
-
- pots_obj * pots_construct_zero(const unsigned int nPots);
-
- pots_obj * pots_clone(const pots_obj * obj);
-
- void pots_copy(pots_obj * dest, const pots_obj * src);
-
- void pots_zero(pots_obj * obj);
-
- void pots_destroy(pots_obj * obj);
-
- void pots_printf(const pots_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "scan.h"
+ #include <signal/scan.h>
scans_obj * scans_construct_null(const unsigned int nLevels) {
+++ /dev/null
-#ifndef __ODAS_SIGNAL_SCAN
-#define __ODAS_SIGNAL_SCAN
-
- /**
- * \file scan.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
-
- #include "pair.h"
- #include "point.h"
- #include "tdoa.h"
- #include "delta.h"
- #include "index.h"
- #include "spatialindex.h"
-
- //! Scan setup
- typedef struct scans_obj {
-
- unsigned int nLevels;
-
- points_obj ** points;
- tdoas_obj ** tdoas;
- deltas_obj ** deltas;
- spatialindexes_obj ** spatialindexes;
- pairs_obj * pairs;
-
- indexes_obj ** indexes;
-
- } scans_obj;
-
- scans_obj * scans_construct_null(const unsigned int nLevels);
-
- void scans_destroy(scans_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "spatialgain.h"
+ #include <signal/spatialgain.h>
spatialgains_obj * spatialgains_construct_zero(const unsigned int nChannels, const unsigned int nPoints) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_SPATIALGAIN
-#define __ODAS_SIGNAL_SPATIALGAIN
-
- /**
- * \file spatialgain.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct spatialgains_obj {
-
- unsigned int nChannels;
- unsigned int nPoints;
-
- float * array;
-
- } spatialgains_obj;
-
- spatialgains_obj * spatialgains_construct_zero(const unsigned int nChannels, const unsigned int nPoints);
-
- spatialgains_obj * spatialgains_clone(const spatialgains_obj * obj);
-
- void spatialgains_destroy(spatialgains_obj * obj);
-
- void spatialgains_printf(const spatialgains_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "spatialindex.h"
+ #include <signal/spatialindex.h>
spatialindexes_obj * spatialindexes_construct_zero(const unsigned int nPoints, const unsigned int nPairs) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_SPATIALINDEX
-#define __ODAS_SIGNAL_SPATIALINDEX
-
- /**
- * \file spatialindex.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct spatialindexes_obj {
-
- unsigned int nPoints;
- unsigned int nPairs;
-
- unsigned int * array;
- unsigned int * count;
-
- } spatialindexes_obj;
-
- spatialindexes_obj * spatialindexes_construct_zero(const unsigned int nPoints, const unsigned int nPairs);
-
- spatialindexes_obj * spatialindexes_clone(const spatialindexes_obj * obj);
-
- void spatialindexes_destroy(spatialindexes_obj * obj);
-
- void spatialindexes_printf(const spatialindexes_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "spatialmask.h"
+ #include <signal/spatialmask.h>
spatialmasks_obj * spatialmasks_construct_zero(const unsigned int nPoints, const unsigned int nPairs) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_SPATIALMASK
-#define __ODAS_SIGNAL_SPATIALMASK
-
- /**
- * \file spatialmask.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct spatialmasks_obj {
-
- unsigned int nPoints;
- unsigned int nPairs;
-
- char * array;
-
- } spatialmasks_obj;
-
- spatialmasks_obj * spatialmasks_construct_zero(const unsigned int nPoints, const unsigned int nPairs);
-
- spatialmasks_obj * spatialmasks_clone(const spatialmasks_obj * obj);
-
- void spatialmasks_destroy(spatialmasks_obj * obj);
-
- void spatialmasks_printf(const spatialmasks_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "steer.h"
+ #include <signal/steer.h>
steers_obj * steers_construct_zero(const unsigned int halfFrameSize, const unsigned int nSeps, const unsigned int nChannels) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_STEER
-#define __ODAS_SIGNAL_STEER
-
- /**
- * \file steer.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct steers_obj {
-
- unsigned int nSeps;
- unsigned int nChannels;
- unsigned int halfFrameSize;
-
- float ** array;
-
- } steers_obj;
-
- steers_obj * steers_construct_zero(const unsigned int halfFrameSize, const unsigned int nSeps, const unsigned int nChannels);
-
- void steers_destroy(steers_obj * obj);
-
- void steers_copy(steers_obj * dest, const steers_obj * src);
-
- void steers_printf(const steers_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "target.h"
+ #include <signal/target.h>
targets_obj * targets_construct_zero(const unsigned int nTargets) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_TARGET
-#define __ODAS_SIGNAL_TARGET
-
- /**
- * \file target.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct targets_obj {
-
- unsigned int nTargets;
- char ** tags;
- float * array;
-
- } targets_obj;
-
- targets_obj * targets_construct_zero(const unsigned int nTargets);
-
- void targets_destroy(targets_obj * obj);
-
- targets_obj * targets_clone(const targets_obj * obj);
-
- void targets_copy(targets_obj * dest, const targets_obj * src);
-
- void targets_zero(targets_obj * obj);
-
- void targets_printf(const targets_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "tau.h"
+ #include <signal/tau.h>
taus_obj * taus_construct_zero(const unsigned int nPoints, const unsigned int nPairs) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_TAU
-#define __ODAS_SIGNAL_TAU
-
- /**
- * \file tau.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct taus_obj {
-
- unsigned int nPoints;
- unsigned int nPairs;
- float * mu;
- float * sigma2;
-
- } taus_obj;
-
- taus_obj * taus_construct_zero(const unsigned int nPoints, const unsigned int nPairs);
-
- void taus_destroy(taus_obj * obj);
-
- void taus_printf(const taus_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "tdoa.h"
+ #include <signal/tdoa.h>
tdoas_obj * tdoas_construct_zero(const unsigned int nPoints, const unsigned int nPairs) {
+++ /dev/null
-#ifndef __ODAS_SIGNAL_TDOA
-#define __ODAS_SIGNAL_TDOA
-
- /**
- * \file tdoa.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct tdoas_obj {
-
- unsigned int nPoints;
- unsigned int nPairs;
- unsigned int * array;
- unsigned int * min;
- unsigned int * max;
-
- } tdoas_obj;
-
- tdoas_obj * tdoas_construct_zero(const unsigned int nPoints, const unsigned int nPairs);
-
- void tdoas_destroy(tdoas_obj * obj);
-
- void tdoas_printf(const tdoas_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "track.h"
+ #include <signal/track.h>
tracks_obj * tracks_construct_zero(const unsigned int nTracks) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_TRACK
-#define __ODAS_SIGNAL_TRACK
-
- /**
- * \file track.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct tracks_obj {
-
- unsigned int nTracks;
- unsigned long long * ids;
- char ** tags;
- float * array;
- float * activity;
-
- } tracks_obj;
-
- tracks_obj * tracks_construct_zero(const unsigned int nTracks);
-
- void tracks_destroy(tracks_obj * obj);
-
- tracks_obj * tracks_clone(const tracks_obj * obj);
-
- void tracks_copy(tracks_obj * dest, const tracks_obj * src);
-
- void tracks_zero(tracks_obj * obj);
-
- void tracks_printf(const tracks_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "triangle.h"
+ #include <signal/triangle.h>
triangles_obj * triangles_construct_zero(const unsigned int nTriangles) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_TRIANGLE
-#define __ODAS_SIGNAL_TRIANGLE
-
- /**
- * \file triangle.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct triangles_obj {
-
- unsigned nTriangles;
- float * array;
-
- } triangles_obj;
-
- triangles_obj * triangles_construct_zero(const unsigned int nTriangles);
-
- void triangles_destroy(triangles_obj * obj);
-
- void triangles_printf(const triangles_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "window.h"
+ #include <signal/window.h>
window_obj * window_construct_zero(const unsigned int frameSize) {
free((void *) obj->array);
free((void *) obj);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_WINDOW
-#define __ODAS_SIGNAL_WINDOW
-
- /**
- * \file window.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
-
- typedef struct window_obj {
-
- unsigned int frameSize;
- float * array;
-
- } window_obj;
-
- window_obj * window_construct_zero(const unsigned int frameSize);
-
- void window_destroy(window_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "xcorr.h"
+ #include <signal/xcorr.h>
xcorrs_obj * xcorrs_construct_zero(const unsigned int nSignals, const unsigned int frameSize) {
printf("\n");
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SIGNAL_XCORR
-#define __ODAS_SIGNAL_XCORR
-
- /**
- * \file xcorr.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- typedef struct xcorrs_obj {
-
- unsigned int nSignals;
- unsigned int frameSize;
- float ** array;
-
- } xcorrs_obj;
-
- xcorrs_obj * xcorrs_construct_zero(const unsigned int nSignals, const unsigned int frameSize);
-
- void xcorrs_destroy(xcorrs_obj * obj);
-
- void xcorrs_copy(xcorrs_obj * dest, const xcorrs_obj * src);
-
- void xcorrs_zero(xcorrs_obj * obj);
-
- void xcorrs_printf(const xcorrs_obj * obj);
-
- void xcorrs_printf_signal(const xcorrs_obj * obj, const unsigned int iSignal);
-
-#endif
\ No newline at end of file
*
*/
- #include "snk_categories.h"
+ #include <sink/snk_categories.h>
snk_categories_obj * snk_categories_construct(const snk_categories_cfg * snk_categories_config, const msg_categories_cfg * msg_categories_config) {
free((void *) snk_categories_config);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SINK_CATEGORIES
-#define __ODAS_SINK_CATEGORIES
-
- /**
- * \file snk_categories.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <unistd.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
-
- #include "../general/format.h"
- #include "../general/interface.h"
- #include "../message/msg_categories.h"
- #include "../utils/pcm.h"
-
- typedef struct snk_categories_obj {
-
- unsigned long long timeStamp;
-
- unsigned int nChannels;
- unsigned int fS;
-
- format_obj * format;
- interface_obj * interface;
-
- char * buffer;
- unsigned int bufferSize;
-
- FILE * fp;
-
- struct sockaddr_in sserver;
- int sid;
-
- msg_categories_obj * in;
-
- } snk_categories_obj;
-
- typedef struct snk_categories_cfg {
-
- unsigned int fS;
- format_obj * format;
- interface_obj * interface;
-
- } snk_categories_cfg;
-
- snk_categories_obj * snk_categories_construct(const snk_categories_cfg * snk_categories_config, const msg_categories_cfg * msg_categories_config);
-
- void snk_categories_destroy(snk_categories_obj * obj);
-
- void snk_categories_connect(snk_categories_obj * obj, msg_categories_obj * in);
-
- void snk_categories_disconnect(snk_categories_obj * obj);
-
- void snk_categories_open(snk_categories_obj * obj);
-
- void snk_categories_open_interface_blackhole(snk_categories_obj * obj);
-
- void snk_categories_open_interface_file(snk_categories_obj * obj);
-
- void snk_categories_open_interface_socket(snk_categories_obj * obj);
-
- void snk_categories_open_interface_terminal(snk_categories_obj * obj);
-
- void snk_categories_close(snk_categories_obj * obj);
-
- void snk_categories_close_interface_blackhole(snk_categories_obj * obj);
-
- void snk_categories_close_interface_file(snk_categories_obj * obj);
-
- void snk_categories_close_interface_socket(snk_categories_obj * obj);
-
- void snk_categories_close_interface_terminal(snk_categories_obj * obj);
-
- int snk_categories_process(snk_categories_obj * obj);
-
- void snk_categories_process_interface_blackhole(snk_categories_obj * obj);
-
- void snk_categories_process_interface_file(snk_categories_obj * obj);
-
- void snk_categories_process_interface_socket(snk_categories_obj * obj);
-
- void snk_categories_process_interface_terminal(snk_categories_obj * obj);
-
- void snk_categories_process_format_text_json(snk_categories_obj * obj);
-
- void snk_categories_process_format_undefined(snk_categories_obj * obj);
-
- snk_categories_cfg * snk_categories_cfg_construct(void);
-
- void snk_categories_cfg_destroy(snk_categories_cfg * snk_categories_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "snk_hops.h"
+ #include <sink/snk_hops.h>
snk_hops_obj * snk_hops_construct(const snk_hops_cfg * snk_hops_config, const msg_hops_cfg * msg_hops_config) {
free((void *) snk_hops_config);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SINK_HOPS
-#define __ODAS_SINK_HOPS
-
- /**
- * \file snk_hops.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <unistd.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
-
- #include "../general/format.h"
- #include "../general/interface.h"
- #include "../message/msg_hops.h"
- #include "../utils/pcm.h"
-
- typedef struct snk_hops_obj {
-
- unsigned long long timeStamp;
-
- unsigned int hopSize;
- unsigned int nChannels;
- unsigned int fS;
-
- format_obj * format;
- interface_obj * interface;
-
- char * buffer;
- unsigned int bufferSize;
-
- FILE * fp;
-
- struct sockaddr_in sserver;
- int sid;
-
- char bytes[4];
-
- msg_hops_obj * in;
-
- } snk_hops_obj;
-
- typedef struct snk_hops_cfg {
-
- unsigned int fS;
- format_obj * format;
- interface_obj * interface;
-
- } snk_hops_cfg;
-
- snk_hops_obj * snk_hops_construct(const snk_hops_cfg * snk_hops_config, const msg_hops_cfg * msg_hops_config);
-
- void snk_hops_destroy(snk_hops_obj * obj);
-
- void snk_hops_connect(snk_hops_obj * obj, msg_hops_obj * in);
-
- void snk_hops_disconnect(snk_hops_obj * obj);
-
- void snk_hops_open(snk_hops_obj * obj);
-
- void snk_hops_open_interface_blackhole(snk_hops_obj * obj);
-
- void snk_hops_open_interface_file(snk_hops_obj * obj);
-
- void snk_hops_open_interface_socket(snk_hops_obj * obj);
-
- void snk_hops_close(snk_hops_obj * obj);
-
- void snk_hops_close_interface_blackhole(snk_hops_obj * obj);
-
- void snk_hops_close_interface_file(snk_hops_obj * obj);
-
- void snk_hops_close_interface_socket(snk_hops_obj * obj);
-
- int snk_hops_process(snk_hops_obj * obj);
-
- void snk_hops_process_interface_blackhole(snk_hops_obj * obj);
-
- void snk_hops_process_interface_file(snk_hops_obj * obj);
-
- void snk_hops_process_interface_socket(snk_hops_obj * obj);
-
- void snk_hops_process_format_binary_int08(snk_hops_obj * obj);
-
- void snk_hops_process_format_binary_int16(snk_hops_obj * obj);
-
- void snk_hops_process_format_binary_int24(snk_hops_obj * obj);
-
- void snk_hops_process_format_binary_int32(snk_hops_obj * obj);
-
- void snk_hops_process_format_undefined(snk_hops_obj * obj);
-
- snk_hops_cfg * snk_hops_cfg_construct(void);
-
- void snk_hops_cfg_destroy(snk_hops_cfg * snk_hops_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "snk_pots.h"
+ #include <sink/snk_pots.h>
snk_pots_obj * snk_pots_construct(const snk_pots_cfg * snk_pots_config, const msg_pots_cfg * msg_pots_config) {
free((void *) snk_pots_config);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SINK_POTS
-#define __ODAS_SINK_POTS
-
- /**
- * \file snk_pots.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
- #include <unistd.h>
-
- #include "../general/format.h"
- #include "../general/interface.h"
- #include "../message/msg_pots.h"
-
- typedef struct snk_pots_obj {
-
- unsigned long long timeStamp;
-
- unsigned int nPots;
- unsigned int fS;
-
- format_obj * format;
- interface_obj * interface;
-
- char * buffer;
- unsigned int bufferSize;
-
- FILE * fp;
-
- struct sockaddr_in sserver;
- int sid;
-
- msg_pots_obj * in;
-
- } snk_pots_obj;
-
- typedef struct snk_pots_cfg {
-
- unsigned int fS;
- format_obj * format;
- interface_obj * interface;
-
- } snk_pots_cfg;
-
- snk_pots_obj * snk_pots_construct(const snk_pots_cfg * snk_pots_config, const msg_pots_cfg * msg_pots_config);
-
- void snk_pots_destroy(snk_pots_obj * obj);
-
- void snk_pots_connect(snk_pots_obj * obj, msg_pots_obj * in);
-
- void snk_pots_disconnect(snk_pots_obj * obj);
-
- void snk_pots_open(snk_pots_obj * obj);
-
- void snk_pots_open_interface_blackhole(snk_pots_obj * obj);
-
- void snk_pots_open_interface_file(snk_pots_obj * obj);
-
- void snk_pots_open_interface_socket(snk_pots_obj * obj);
-
- void snk_pots_open_interface_terminal(snk_pots_obj * obj);
-
- void snk_pots_close(snk_pots_obj * obj);
-
- void snk_pots_close_interface_blackhole(snk_pots_obj * obj);
-
- void snk_pots_close_interface_file(snk_pots_obj * obj);
-
- void snk_pots_close_interface_socket(snk_pots_obj * obj);
-
- void snk_pots_close_interface_terminal(snk_pots_obj * obj);
-
- int snk_pots_process(snk_pots_obj * obj);
-
- void snk_pots_process_interface_blackhole(snk_pots_obj * obj);
-
- void snk_pots_process_interface_file(snk_pots_obj * obj);
-
- void snk_pots_process_interface_socket(snk_pots_obj * obj);
-
- void snk_pots_process_interface_terminal(snk_pots_obj * obj);
-
- void snk_pots_process_format_binary_float(snk_pots_obj * obj);
-
- void snk_pots_process_format_text_json(snk_pots_obj * obj);
-
- void snk_pots_process_format_undefined(snk_pots_obj * obj);
-
- snk_pots_cfg * snk_pots_cfg_construct(void);
-
- void snk_pots_cfg_destroy(snk_pots_cfg * snk_pots_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "snk_powers.h"
+ #include <sink/snk_powers.h>
snk_powers_obj * snk_powers_construct(const snk_powers_cfg * snk_powers_config, const msg_powers_cfg * msg_powers_config) {
free((void *) snk_powers_config);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SINK_POWERS
-#define __ODAS_SINK_POWERS
-
- /**
- * \file snk_powers.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-
- #include "../general/format.h"
- #include "../general/interface.h"
- #include "../message/msg_powers.h"
-
- typedef struct snk_powers_obj {
-
- unsigned long long timeStamp;
-
- unsigned int halfFrameSize;
- unsigned int nChannels;
- unsigned int fS;
-
- format_obj * format;
- interface_obj * interface;
-
- char * buffer;
- unsigned int bufferSize;
-
- FILE * fp;
-
- msg_powers_obj * in;
-
- } snk_powers_obj;
-
- typedef struct snk_powers_cfg {
-
- unsigned int fS;
- format_obj * format;
- interface_obj * interface;
-
- } snk_powers_cfg;
-
- snk_powers_obj * snk_powers_construct(const snk_powers_cfg * snk_powers_config, const msg_powers_cfg * msg_powers_config);
-
- void snk_powers_destroy(snk_powers_obj * obj);
-
- void snk_powers_connect(snk_powers_obj * obj, msg_powers_obj * in);
-
- void snk_powers_disconnect(snk_powers_obj * obj);
-
- void snk_powers_open(snk_powers_obj * obj);
-
- void snk_powers_open_interface_blackhole(snk_powers_obj * obj);
-
- void snk_powers_close(snk_powers_obj * obj);
-
- void snk_powers_close_interface_blackhole(snk_powers_obj * obj);
-
- int snk_powers_process(snk_powers_obj * obj);
-
- void snk_powers_process_interface_blackhole(snk_powers_obj * obj);
-
- void snk_powers_process_format_undefined(snk_powers_obj * obj);
-
- snk_powers_cfg * snk_powers_cfg_construct(void);
-
- void snk_powers_cfg_destroy(snk_powers_cfg * snk_powers_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "snk_spectra.h"
+ #include <sink/snk_spectra.h>
snk_spectra_obj * snk_spectra_construct(const snk_spectra_cfg * snk_spectra_config, const msg_spectra_cfg * msg_spectra_config) {
free((void *) snk_spectra_config);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SINK_SPECTRA
-#define __ODAS_SINK_SPECTRA
-
- /**
- * \file snk_spectra.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-
- #include "../general/format.h"
- #include "../general/interface.h"
- #include "../message/msg_spectra.h"
-
- typedef struct snk_spectra_obj {
-
- unsigned long long timeStamp;
-
- unsigned int halfFrameSize;
- unsigned int nChannels;
- unsigned int fS;
-
- format_obj * format;
- interface_obj * interface;
-
- FILE * fp;
-
- msg_spectra_obj * in;
-
- } snk_spectra_obj;
-
- typedef struct snk_spectra_cfg {
-
- unsigned int fS;
- format_obj * format;
- interface_obj * interface;
-
- } snk_spectra_cfg;
-
- snk_spectra_obj * snk_spectra_construct(const snk_spectra_cfg * snk_spectra_config, const msg_spectra_cfg * msg_spectra_config);
-
- void snk_spectra_destroy(snk_spectra_obj * obj);
-
- void snk_spectra_connect(snk_spectra_obj * obj, msg_spectra_obj * in);
-
- void snk_spectra_disconnect(snk_spectra_obj * obj);
-
- void snk_spectra_open(snk_spectra_obj * obj);
-
- void snk_spectra_open_interface_blackhole(snk_spectra_obj * obj);
-
- void snk_spectra_close(snk_spectra_obj * obj);
-
- void snk_spectra_close_interface_blackhole(snk_spectra_obj * obj);
-
- int snk_spectra_process(snk_spectra_obj * obj);
-
- void snk_spectra_process_interface_blackhole(snk_spectra_obj * obj);
-
- void snk_spectra_process_format_undefined(snk_spectra_obj * obj);
-
- snk_spectra_cfg * snk_spectra_cfg_construct(void);
-
- void snk_spectra_cfg_destroy(snk_spectra_cfg * snk_spectra_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "snk_tracks.h"
+ #include <sink/snk_tracks.h>
snk_tracks_obj * snk_tracks_construct(const snk_tracks_cfg * snk_tracks_config, const msg_tracks_cfg * msg_tracks_config) {
+++ /dev/null
-#ifndef __ODAS_SINK_TRACKS
-#define __ODAS_SINK_TRACKS
-
- /**
- * \file snk_tracks.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
- #include <unistd.h>
-
- #include "../general/format.h"
- #include "../general/interface.h"
- #include "../message/msg_tracks.h"
-
- typedef struct snk_tracks_obj {
-
- unsigned long long timeStamp;
-
- unsigned int nTracks;
- unsigned int fS;
-
- format_obj * format;
- interface_obj * interface;
-
- char * buffer;
- unsigned int bufferSize;
-
- FILE * fp;
-
- struct sockaddr_in sserver;
- int sid;
-
- msg_tracks_obj * in;
-
- } snk_tracks_obj;
-
- typedef struct snk_tracks_cfg {
-
- unsigned int fS;
- format_obj * format;
- interface_obj * interface;
-
- } snk_tracks_cfg;
-
- snk_tracks_obj * snk_tracks_construct(const snk_tracks_cfg * snk_tracks_config, const msg_tracks_cfg * msg_tracks_config);
-
- void snk_tracks_destroy(snk_tracks_obj * obj);
-
- void snk_tracks_connect(snk_tracks_obj * obj, msg_tracks_obj * in);
-
- void snk_tracks_disconnect(snk_tracks_obj * obj);
-
- void snk_tracks_open(snk_tracks_obj * obj);
-
- void snk_tracks_open_interface_blackhole(snk_tracks_obj * obj);
-
- void snk_tracks_open_interface_file(snk_tracks_obj * obj);
-
- void snk_tracks_open_interface_socket(snk_tracks_obj * obj);
-
- void snk_tracks_open_interface_terminal(snk_tracks_obj * obj);
-
- void snk_tracks_close(snk_tracks_obj * obj);
-
- void snk_tracks_close_interface_blackhole(snk_tracks_obj * obj);
-
- void snk_tracks_close_interface_file(snk_tracks_obj * obj);
-
- void snk_tracks_close_interface_socket(snk_tracks_obj * obj);
-
- void snk_tracks_close_interface_terminal(snk_tracks_obj * obj);
-
- int snk_tracks_process(snk_tracks_obj * obj);
-
- void snk_tracks_process_interface_blackhole(snk_tracks_obj * obj);
-
- void snk_tracks_process_interface_file(snk_tracks_obj * obj);
-
- void snk_tracks_process_interface_socket(snk_tracks_obj * obj);
-
- void snk_tracks_process_interface_terminal(snk_tracks_obj * obj);
-
- void snk_tracks_process_format_text_json(snk_tracks_obj * obj);
-
- void snk_tracks_process_format_undefined(snk_tracks_obj * obj);
-
- snk_tracks_cfg * snk_tracks_cfg_construct(void);
-
- void snk_tracks_cfg_destroy(snk_tracks_cfg * snk_tracks_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "src_hops.h"
+ #include <source/src_hops.h>
src_hops_obj * src_hops_construct(const src_hops_cfg * src_hops_config, const msg_hops_cfg * msg_hops_config) {
+++ /dev/null
-#ifndef __ODAS_SOURCE_HOPS
-#define __ODAS_SOURCE_HOPS
-
- /**
- * \file src_hops.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <alsa/asoundlib.h>
-
- #include "../general/format.h"
- #include "../general/interface.h"
- #include "../message/msg_hops.h"
- #include "../signal/hop.h"
- #include "../utils/pcm.h"
-
- typedef struct src_hops_obj {
-
- unsigned long long timeStamp;
-
- unsigned int hopSize;
- unsigned int nChannels;
- unsigned int fS;
-
- format_obj * format;
- interface_obj * interface;
-
- FILE * fp;
- snd_pcm_t * ch;
-
- char * buffer;
- unsigned int bufferSize;
-
- char bytes[4];
-
- msg_hops_obj * out;
-
- } src_hops_obj;
-
- typedef struct src_hops_cfg {
-
- format_obj * format;
- interface_obj * interface;
-
- } src_hops_cfg;
-
- src_hops_obj * src_hops_construct(const src_hops_cfg * src_hops_config, const msg_hops_cfg * msg_hops_config);
-
- void src_hops_destroy(src_hops_obj * obj);
-
- void src_hops_connect(src_hops_obj * obj, msg_hops_obj * out);
-
- void src_hops_disconnect(src_hops_obj * obj);
-
- void src_hops_open(src_hops_obj * obj);
-
- void src_hops_open_interface_file(src_hops_obj * obj);
-
- void src_hops_open_interface_soundcard(src_hops_obj * obj);
-
- void src_hops_close(src_hops_obj * obj);
-
- void src_hops_close_interface_file(src_hops_obj * obj);
-
- void src_hops_close_interface_soundcard(src_hops_obj * obj);
-
- int src_hops_process(src_hops_obj * obj);
-
- int src_hops_process_interface_file(src_hops_obj * obj);
-
- int src_hops_process_interface_soundcard(src_hops_obj * obj);
-
- void src_hops_process_format_binary_int08(src_hops_obj * obj);
-
- void src_hops_process_format_binary_int16(src_hops_obj * obj);
-
- void src_hops_process_format_binary_int24(src_hops_obj * obj);
-
- void src_hops_process_format_binary_int32(src_hops_obj * obj);
-
- src_hops_cfg * src_hops_cfg_construct(void);
-
- void src_hops_cfg_destroy(src_hops_cfg * src_hops_config);
-
-#endif
\ No newline at end of file
*
*/
- #include "acorr2pitch.h"
+ #include <system/acorr2pitch.h>
acorr2pitch_obj * acorr2pitch_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize, const unsigned int winSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_ACORR2PITCH
-#define __ODAS_SYSTEM_ACORR2PITCH
-
- /**
- * \file acorr2pitch.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../signal/acorr.h"
- #include "../signal/pitch.h"
-
- #include <math.h>
-
- typedef struct acorr2pitch_obj {
-
- unsigned int nSignals;
- unsigned int halfFrameSize;
- unsigned int frameSize;
- unsigned int winSize;
-
- } acorr2pitch_obj;
-
- acorr2pitch_obj * acorr2pitch_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize, const unsigned int winSize);
-
- void acorr2pitch_destroy(acorr2pitch_obj * obj);
-
- void acorr2pitch_process(acorr2pitch_obj * obj, const acorrs_obj * acorrs, pitches_obj * pitches);
-
-#endif
\ No newline at end of file
*
*/
- #include "demixing2env.h"
+ #include <system/demixing2env.h>
demixing2env_obj * demixing2env_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_DEMIXING2ENV
-#define __ODAS_SYSTEM_DEMIXING2ENV
-
- /**
- * \file demixing2env.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
- #include <math.h>
-
- #include "../signal/demixing.h"
- #include "../signal/env.h"
- #include "../signal/mask.h"
- #include "../signal/track.h"
-
- typedef struct demixing2env_obj {
-
- unsigned int nSeps;
- unsigned int nChannels;
- unsigned int halfFrameSize;
-
- } demixing2env_obj;
-
- demixing2env_obj * demixing2env_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize);
-
- void demixing2env_destroy(demixing2env_obj * obj);
-
- void demixing2env_process(demixing2env_obj * obj, const tracks_obj * tracks, const demixings_obj * demixings, const masks_obj * masks, const envs_obj * envsChannel, envs_obj * envsSeparated);
-
-#endif
\ No newline at end of file
*
*/
- #include "demixing2freq.h"
+ #include <system/demixing2freq.h>
demixing2freq_obj * demixing2freq_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_DEMIXING2FREQ
-#define __ODAS_SYSTEM_DEMIXING2FREQ
-
- /**
- * \file demixing2freq.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
- #include <math.h>
-
- #include "../signal/demixing.h"
- #include "../signal/freq.h"
- #include "../signal/mask.h"
- #include "../signal/track.h"
-
- typedef struct demixing2freq_obj {
-
- unsigned int nSeps;
- unsigned int nChannels;
- unsigned int halfFrameSize;
-
- } demixing2freq_obj;
-
- demixing2freq_obj * demixing2freq_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize);
-
- void demixing2freq_destroy(demixing2freq_obj * obj);
-
- void demixing2freq_process(demixing2freq_obj * obj, const tracks_obj * tracks, const demixings_obj * demixings, const masks_obj * masks, const freqs_obj * freqsChannel, freqs_obj * freqsSeparated);
-
-#endif
\ No newline at end of file
*
*/
- #include "env2env.h"
+ #include <system/env2env.h>
env2env_mcra_obj * env2env_mcra_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const unsigned int bSize, const float alphaS, const unsigned int L, const float delta, const float alphaD) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_ENV2ENV
-#define __ODAS_SYSTEM_ENV2ENV
-
- /**
- * \file env2env.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <math.h>
-
- #include "../signal/env.h"
- #include "../signal/track.h"
- #include "../utils/fft.h"
- #include "../utils/transcendental.h"
-
- typedef struct env2env_mcra_obj {
-
- unsigned int nChannels;
- unsigned int halfFrameSize;
-
- unsigned int bSize;
- float alphaS;
- unsigned int L;
- float delta;
- float alphaD;
-
- unsigned long long * idsPrev;
- unsigned int * l;
-
- float * b;
- float ** S;
- float ** Smin;
- float ** SminPrev;
- float ** SPrev;
- float ** Stmp;
- float ** StmpPrev;
- float ** Sf;
- float ** lambdaD;
- float ** lambdaDnext;
-
- } env2env_mcra_obj;
-
- typedef struct env2env_weight_obj {
-
- unsigned int nChannels;
- unsigned int halfFrameSize;
-
- float alphaD;
- float epsilon;
-
- float ** XPrev;
- float ** xi;
- float ** zetaPrev;
-
- } env2env_weight_obj;
-
- typedef struct env2env_interf_obj {
-
- unsigned int nChannels;
- unsigned int halfFrameSize;
-
- float eta;
- float alphaZ;
-
- float ** Zs;
- float ** ZsPrev;
-
- } env2env_interf_obj;
-
- typedef struct env2env_gainspeech_obj {
-
- unsigned int nChannels;
- unsigned int halfFrameSize;
-
- float alphaPmin;
- float epsilon;
-
- float ** gamma;
- float ** alphaP;
- float ** xi;
- float ** GH1;
- float ** v;
-
- transcendental_obj * transcendental;
-
- } env2env_gainspeech_obj;
-
- typedef struct env2env_probspeech_obj {
-
- unsigned int nChannels;
- unsigned int halfFrameSize;
- unsigned int frameSize;
-
- float theta;
- float alpha;
- float maxAbsenceProb;
- float Gmin;
-
- unsigned int winSizeLocal;
- unsigned int winSizeGlobal;
- unsigned int winSizeFrame;
-
- fft_obj * fft;
-
- float * winLocal;
- float * winGlobal;
- float * winFrame;
-
- float * winLocalShifted;
- float * winGlobalShifted;
- float * winFrameShifted;
-
- float * winLocalShiftedFreq;
- float * winGlobalShiftedFreq;
- float * winFrameShiftedFreq;
-
- float ** xiTime;
- float ** xiFreq;
-
- float ** xiSmoothedLocalFreq;
- float ** xiSmoothedGlobalFreq;
- float ** xiSmoothedFrameFreq;
- float ** xiSmoothedLocalTime;
- float ** xiSmoothedGlobalTime;
- float ** xiSmoothedFrameTime;
- float ** xiSmoothedLocal;
- float ** xiSmoothedGlobal;
- float ** xiSmoothedFrame;
-
- float ** zetaLocal;
- float ** zetaLocalPrev;
- float ** zetaGlobal;
- float ** zetaGlobalPrev;
- float ** zetaFrame;
- float ** zetaFramePrev;
-
- float ** PLocal;
- float ** PGlobal;
- float ** PFrame;
-
- float ** q;
- float ** p;
-
- } env2env_probspeech_obj;
-
- typedef struct env2env_gainall_obj {
-
- unsigned int nChannels;
- unsigned int halfFrameSize;
-
- float Gmin;
-
- } env2env_gainall_obj;
-
- typedef struct env2env_gainratio_obj {
-
- unsigned int nInitChannels;
- unsigned int nChannels;
- unsigned int halfFrameSize;
-
- float Gmin;
- float Gmid;
- float Gslope;
-
- float epsilon;
-
- } env2env_gainratio_obj;
-
- env2env_mcra_obj * env2env_mcra_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const unsigned int bSize, const float alphaS, const unsigned int L, const float delta, const float alphaD);
-
- void env2env_mcra_destroy(env2env_mcra_obj * obj);
-
- void env2env_mcra_process(env2env_mcra_obj * obj, const tracks_obj * tracks, const envs_obj * noisys, const envs_obj * estNoises, envs_obj * noises);
-
- env2env_weight_obj * env2env_weight_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const float alphaD, const float epsilon);
-
- void env2env_weight_destroy(env2env_weight_obj * obj);
-
- void env2env_weight_process(env2env_weight_obj * obj, const tracks_obj * tracks, const envs_obj * noisys, const envs_obj * noises, envs_obj * weights);
-
- env2env_interf_obj * env2env_interf_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const float eta, const float alphaZ);
-
- void env2env_interf_destroy(env2env_interf_obj * obj);
-
- void env2env_interf_process(env2env_interf_obj * obj, const tracks_obj * tracks, const envs_obj * seps, const envs_obj * noises, envs_obj * interfs);
-
- env2env_gainspeech_obj * env2env_gainspeech_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const float alphaPmin, const float epsilon);
-
- void env2env_gainspeech_destroy(env2env_gainspeech_obj * obj);
-
- void env2env_gainspeech_process(env2env_gainspeech_obj * obj, const tracks_obj * tracks, const envs_obj * seps, const envs_obj * noises, envs_obj * gains, envs_obj * snrs, envs_obj * vs);
-
- env2env_probspeech_obj * env2env_probspeech_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const float theta, const float alpha, const float maxAbsenceProb, const float Gmin, const unsigned int winSizeLocal, const unsigned int winSizeGlobal, const unsigned int winSizeFrame);
-
- void env2env_probspeech_destroy(env2env_probspeech_obj * obj);
-
- void env2env_probspeech_process(env2env_probspeech_obj * obj, const tracks_obj * tracks, const envs_obj * snrs, const envs_obj * vs, envs_obj * probspeechs);
-
- env2env_gainall_obj * env2env_gainall_construct_zero(const unsigned int nChannels, const unsigned int halfFrameSize, const float Gmin);
-
- void env2env_gainall_destroy(env2env_gainall_obj * obj);
-
- void env2env_gainall_process(env2env_gainall_obj * obj, const tracks_obj * tracks, const envs_obj * gainspeeches, const envs_obj * probspeeches, envs_obj * gainalls);
-
- env2env_gainratio_obj * env2env_gainratio_construct_zero(const unsigned int nInitChannels, const unsigned int nChannels, const unsigned int halfFrameSize, const float Gmin, const float Gmid, const float Gslope, const float epsilon);
-
- void env2env_gainratio_destroy(env2env_gainratio_obj * obj);
-
- void env2env_gainratio_process(env2env_gainratio_obj * obj, const tracks_obj * tracks, const envs_obj * seps, const envs_obj * diffuse, envs_obj * gainratio);
-
-#endif
\ No newline at end of file
*
*/
- #include "frame2freq.h"
+ #include <system/frame2freq.h>
frame2freq_obj * frame2freq_construct_zero(const unsigned int frameSize, const unsigned int halfFrameSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_FRAME2FREQ
-#define __ODAS_SYSTEM_FRAME2FREQ
-
- /**
- * \file frame2freq.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../init/windowing.h"
- #include "../signal/frame.h"
- #include "../signal/freq.h"
- #include "../signal/window.h"
- #include "../utils/fft.h"
-
- typedef struct frame2freq_obj {
-
- unsigned int frameSize;
- unsigned int halfFrameSize;
-
- window_obj * win;
- float * frame;
-
- fft_obj * fft;
-
- } frame2freq_obj;
-
- frame2freq_obj * frame2freq_construct_zero(const unsigned int frameSize, const unsigned int halfFrameSize);
-
- void frame2freq_destroy(frame2freq_obj * obj);
-
- void frame2freq_process(frame2freq_obj * obj, const frames_obj * frames, freqs_obj * freqs);
-
-#endif
\ No newline at end of file
*
*/
- #include "frame2hop.h"
+ #include <system/frame2hop.h>
frame2hop_obj * frame2hop_construct_zero(const unsigned int hopSize, const unsigned int frameSize, const unsigned int nSignals) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_FRAME2HOP
-#define __ODAS_SYSTEM_FRAME2HOP
-
- /**
- * \file frame2hop.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
-
- #include "../signal/hop.h"
- #include "../signal/frame.h"
-
- typedef struct frame2hop_obj {
-
- unsigned int hopSize;
- unsigned int frameSize;
- unsigned int nSignals;
-
- float ** array;
-
- } frame2hop_obj;
-
- frame2hop_obj * frame2hop_construct_zero(const unsigned int hopSize, const unsigned int frameSize, const unsigned int nSignals);
-
- void frame2hop_destroy(frame2hop_obj * obj);
-
- void frame2hop_process(frame2hop_obj * obj, const frames_obj * frames, hops_obj * hops);
-
-#endif
\ No newline at end of file
*
*/
- #include "freq2acorr.h"
+ #include <system/freq2acorr.h>
freq2acorr_obj * freq2acorr_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_FREQ2ACORR
-#define __ODAS_SYSTEM_FREQ2ACORR
-
- /**
- * \file freq2acorr.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
-
- #include "../signal/acorr.h"
- #include "../signal/freq.h"
- #include "../utils/fft.h"
-
- typedef struct freq2acorr_obj {
-
- unsigned int nSignals;
- unsigned int halfFrameSize;
- unsigned int frameSize;
-
- float * arrayIn;
- float * arrayOut;
-
- fft_obj * fft;
-
- } freq2acorr_obj;
-
- freq2acorr_obj * freq2acorr_construct_zero(const unsigned int nSignals, const unsigned int halfFrameSize);
-
- void freq2acorr_destroy(freq2acorr_obj * obj);
-
- void freq2acorr_process(freq2acorr_obj * obj, const freqs_obj * freqs, acorrs_obj * acorrs);
-
-#endif
\ No newline at end of file
*
*/
- #include "freq2env.h"
+ #include <system/freq2env.h>
freq2env_obj * freq2env_construct_zero(const unsigned int halfFrameSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_FREQ2ENV
-#define __ODAS_SYSTEM_FREQ2ENV
-
- /**
- * \file freq2env.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../signal/freq.h"
- #include "../signal/env.h"
-
- typedef struct freq2env_obj {
-
- unsigned int halfFrameSize;
-
- } freq2env_obj;
-
- freq2env_obj * freq2env_construct_zero(const unsigned int halfFrameSize);
-
- void freq2env_destroy(freq2env_obj * obj);
-
- void freq2env_process(freq2env_obj * obj, const freqs_obj * freqs, envs_obj * envs);
-
-#endif
\ No newline at end of file
*
*/
- #include "freq2frame.h"
+ #include <system/freq2frame.h>
freq2frame_obj * freq2frame_construct_zero(const unsigned int frameSize, const unsigned int halfFrameSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_FREQ2FRAME
-#define __ODAS_SYSTEM_FREQ2FRAME
-
- /**
- * \file freq2frame.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../init/windowing.h"
- #include "../signal/frame.h"
- #include "../signal/freq.h"
- #include "../signal/window.h"
- #include "../utils/fft.h"
-
- typedef struct freq2frame_obj {
-
- unsigned int frameSize;
- unsigned int halfFrameSize;
-
- window_obj * win;
- float * frame;
-
- fft_obj * fft;
-
- } freq2frame_obj;
-
- freq2frame_obj * freq2frame_construct_zero(const unsigned int frameSize, const unsigned int halfFrameSize);
-
- void freq2frame_destroy(freq2frame_obj * obj);
-
- void freq2frame_process(freq2frame_obj * obj, const freqs_obj * freqs, frames_obj * frames);
-
-#endif
\ No newline at end of file
*
*/
- #include "freq2freq.h"
+ #include <system/freq2freq.h>
freq2freq_phasor_obj * freq2freq_phasor_construct_zero(const unsigned int halfFrameSize, const float epsilon) {
+++ /dev/null
-#ifndef __ODAS_SYSTEM_FREQ2FREQ
-#define __ODAS_SYSTEM_FREQ2FREQ
-
- /**
- * \file freq2freq.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <math.h>
-
- #include "../signal/freq.h"
- #include "../signal/env.h"
- #include "../signal/pair.h"
- #include "../signal/track.h"
-
- typedef struct freq2freq_phasor_obj {
-
- unsigned int halfFrameSize;
- float epsilon;
-
- } freq2freq_phasor_obj;
-
- typedef struct freq2freq_weightedphasor_obj {
-
- unsigned int halfFrameSize;
- float epsilon;
-
- } freq2freq_weightedphasor_obj;
-
- typedef struct freq2freq_product_obj {
-
- unsigned int halfFrameSize;
-
- } freq2freq_product_obj;
-
- typedef struct freq2freq_lowpass_obj {
-
- unsigned int halfFrameSize;
- unsigned int lowPassCut;
-
- } freq2freq_lowpass_obj;
-
- typedef struct freq2freq_interpolate_obj {
-
- unsigned halfFrameSize;
- unsigned halfFrameSizeInterp;
-
- } freq2freq_interpolate_obj;
-
- typedef struct freq2freq_gain_obj {
-
- unsigned int halfFrameSize;
-
- } freq2freq_gain_obj;
-
- freq2freq_phasor_obj * freq2freq_phasor_construct_zero(const unsigned int halfFrameSize, const float epsilon);
-
- void freq2freq_phasor_destroy(freq2freq_phasor_obj * obj);
-
- void freq2freq_phasor_process(freq2freq_phasor_obj * obj, const freqs_obj * freqs, freqs_obj * phasors);
-
- freq2freq_weightedphasor_obj * freq2freq_weightedphasor_construct_zero(const unsigned int halfFrameSize, const float epsilon);
-
- void freq2freq_weightedphasor_destroy(freq2freq_weightedphasor_obj * obj);
-
- void freq2freq_weightedphasor_process(freq2freq_weightedphasor_obj * obj, const freqs_obj * freqs, const envs_obj * weights, freqs_obj * weightedphasors);
-
- freq2freq_product_obj * freq2freq_product_construct_zero(const unsigned int halfFrameSize);
-
- void freq2freq_product_destroy(freq2freq_product_obj * obj);
-
- void freq2freq_product_process(freq2freq_product_obj * obj, const freqs_obj * freqs1, const freqs_obj * freqs2, const pairs_obj * pairs, freqs_obj * freqs12);
-
- freq2freq_lowpass_obj * freq2freq_lowpass_construct_zero(const unsigned int halfFrameSize, const unsigned int lowPassCut);
-
- void freq2freq_lowpass_destroy(freq2freq_lowpass_obj * obj);
-
- void freq2freq_lowpass_process(freq2freq_lowpass_obj * obj, const freqs_obj * freqsAllPass, freqs_obj * freqsLowPass);
-
- freq2freq_interpolate_obj * freq2freq_interpolate_construct_zero(const unsigned int halfFrameSize, const unsigned int halfFrameSizeInterp);
-
- void freq2freq_interpolate_destroy(freq2freq_interpolate_obj * obj);
-
- void freq2freq_interpolate_process(freq2freq_interpolate_obj * obj, const freqs_obj * freqs, const freqs_obj * freqsInterp);
-
- freq2freq_gain_obj * freq2freq_gain_construct_zero(const unsigned int halfFrameSize);
-
- void freq2freq_gain_destroy(freq2freq_gain_obj * obj);
-
- void freq2freq_gain_process(freq2freq_gain_obj * obj, const freqs_obj * freqsIn, const envs_obj * envsIn, freqs_obj * freqsOut);
-
-#endif
\ No newline at end of file
*
*/
- #include "freq2xcorr.h"
+ #include <system/freq2xcorr.h>
freq2xcorr_obj * freq2xcorr_construct_zero(const unsigned int frameSize, const unsigned int halfFrameSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_FREQ2XCORR
-#define __ODAS_SYSTEM_FREQ2XCORR
-
- /**
- * \file freq2xcorr.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../signal/frame.h"
- #include "../signal/freq.h"
- #include "../signal/pair.h"
- #include "../signal/tdoa.h"
- #include "../signal/xcorr.h"
- #include "../utils/fft.h"
-
- typedef struct freq2xcorr_obj {
-
- unsigned int frameSize;
- unsigned int halfFrameSize;
-
- float * frame;
-
- fft_obj * fft;
-
- } freq2xcorr_obj;
-
- freq2xcorr_obj * freq2xcorr_construct_zero(const unsigned int frameSize, const unsigned int halfFrameSize);
-
- void freq2xcorr_destroy(freq2xcorr_obj * obj);
-
- void freq2xcorr_process(freq2xcorr_obj * obj, const freqs_obj * freqs, const pairs_obj * pairs, xcorrs_obj * xcorrs);
-
-#endif
\ No newline at end of file
*
*/
- #include "gain2mask.h"
+ #include <system/gain2mask.h>
gain2mask_obj * gain2mask_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const float gainMin) {
+++ /dev/null
-#ifndef __ODAS_SYSTEM_GAIN2MASK
-#define __ODAS_SYSTEM_GAIN2MASK
-
- /**
- * \file gain2mask.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../signal/gain.h"
- #include "../signal/mask.h"
-
- #include <stdlib.h>
- #include <string.h>
-
- typedef struct gain2mask_obj {
-
- unsigned int nSeps;
- unsigned int nChannels;
- float gainMin;
-
- } gain2mask_obj;
-
- gain2mask_obj * gain2mask_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const float gainMin);
-
- void gain2mask_destroy(gain2mask_obj * obj);
-
- void gain2mask_process(gain2mask_obj * obj, const gains_obj * gains, masks_obj * masks);
-
-#endif
\ No newline at end of file
*
*/
- #include "hop2frame.h"
+ #include <system/hop2frame.h>
hop2frame_obj * hop2frame_construct_zero(const unsigned int hopSize, const unsigned int frameSize, const unsigned int nSignals) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_HOP2FRAME
-#define __ODAS_SYSTEM_HOP2FRAME
-
- /**
- * \file hop2frame.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
-
- #include "../signal/hop.h"
- #include "../signal/frame.h"
-
- typedef struct hop2frame_obj {
-
- unsigned int hopSize;
- unsigned int frameSize;
- unsigned int nSignals;
-
- float ** array;
-
- } hop2frame_obj;
-
- hop2frame_obj * hop2frame_construct_zero(const unsigned int hopSize, const unsigned int frameSize, const unsigned int nSignals);
-
- void hop2frame_destroy(hop2frame_obj * obj);
-
- void hop2frame_process(hop2frame_obj * obj, const hops_obj * hops, frames_obj * frames);
-
-#endif
\ No newline at end of file
*
*/
- #include "hop2hop.h"
+ #include <system/hop2hop.h>
hop2hop_multiplex_obj * hop2hop_multiplex_construct_zero(const unsigned int hopSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_HOP2HOP
-#define __ODAS_SYSTEM_HOP2HOP
-
- /**
- * \file hop2hop.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <math.h>
-
- #include "../signal/hop.h"
- #include "../general/link.h"
-
- typedef struct hop2hop_multiplex_obj {
-
- unsigned int hopSize;
-
- } hop2hop_multiplex_obj;
-
- typedef struct hop2hop_buffer_obj {
-
- unsigned int nSignals;
- unsigned int hopSizeIn;
- unsigned int hopSizeOut;
- float intervalIn;
- float intervalOut;
- float intervalSize;
- unsigned int bufferSize;
- float ratio;
- float delta;
-
- float iWrite;
- float iRead;
-
- float ** array;
-
- } hop2hop_buffer_obj;
-
- typedef struct hop2hop_gain_obj {
-
- unsigned int hopSize;
- float gain;
-
- } hop2hop_gain_obj;
-
- hop2hop_multiplex_obj * hop2hop_multiplex_construct_zero(const unsigned int hopSize);
-
- void hop2hop_multiplex_destroy(hop2hop_multiplex_obj * obj);
-
- void hop2hop_multiplex_process(hop2hop_multiplex_obj * obj, const links_obj * links, const hops_obj * src, hops_obj * dest);
-
- hop2hop_buffer_obj * hop2hop_buffer_construct_zero(const unsigned int nSignals, const unsigned int hopSizeIn, const unsigned int hopSizeOut, const float ratio);
-
- void hop2hop_buffer_destroy(hop2hop_buffer_obj * obj);
-
- void hop2hop_buffer_push(hop2hop_buffer_obj * obj, const hops_obj * hops);
-
- void hop2hop_buffer_pop(hop2hop_buffer_obj * obj, hops_obj * hops);
-
- char hop2hop_buffer_isFull(hop2hop_buffer_obj * obj);
-
- char hop2hop_buffer_isEmpty(hop2hop_buffer_obj * obj);
-
- hop2hop_gain_obj * hop2hop_gain_construct_zero(const unsigned int hopSize, const float gain);
-
- void hop2hop_gain_destroy(hop2hop_gain_obj * obj);
-
- void hop2hop_gain_process(hop2hop_gain_obj * obj, const hops_obj * src, hops_obj * dest);
-
-#endif
\ No newline at end of file
*
*/
- #include "kalman2coherence.h"
+ #include <system/kalman2coherence.h>
kalman2coherence_obj * kalman2coherence_construct(const float epsilon, const float sigmaR) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_KALMAN2PRIOR
-#define __ODAS_SYSTEM_KALMAN2PRIOR
-
- /**
- * \file kalman2prior.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <math.h>
-
- #include "../signal/coherence.h"
- #include "../signal/kalman.h"
- #include "../signal/pot.h"
- #include "../utils/matrix.h"
-
- typedef struct kalman2coherence_obj {
-
- float epsilon;
-
- matrix_obj * H;
- matrix_obj * Ht;
-
- matrix_obj * mu_t;
- matrix_obj * mu_t_t;
- matrix_obj * mu_s;
- matrix_obj * mu_s_t;
- matrix_obj * mu_st;
- matrix_obj * mu_st_t;
-
- matrix_obj * HP;
- matrix_obj * sigma_epsilon;
-
- matrix_obj * sigma_t;
- matrix_obj * sigma_s;
- matrix_obj * sigma_st;
-
- matrix_obj * sigma_t_epsilon;
- matrix_obj * sigma_t_inv;
- matrix_obj * sigma_s_inv;
- matrix_obj * sigma_st_inv;
-
- matrix_obj * sigma_t_inv_mu_t;
- matrix_obj * sigma_s_inv_mu_s;
- matrix_obj * sigma_st_inv_mu_st;
-
- matrix_obj * mu_t_t_sigma_t_inv_mu_t;
- matrix_obj * mu_s_t_sigma_s_inv_mu_s;
- matrix_obj * mu_st_t_sigma_st_inv_mu_st;
-
- matrix_obj * sigma_t_inv_mu_t_sigma_s_inv_mu_s;
-
- } kalman2coherence_obj;
-
- kalman2coherence_obj * kalman2coherence_construct(const float epsilon, const float sigmaR);
-
- void kalman2coherence_destroy(kalman2coherence_obj * obj);
-
- void kalman2coherence_process(kalman2coherence_obj * obj, const kalman_obj * kalman, const pots_obj * pots, const unsigned int iTrack, coherences_obj * coherences);
-
-
-#endif
\ No newline at end of file
*
*/
- #include "kalman2kalman.h"
+ #include <system/kalman2kalman.h>
kalman2kalman_obj * kalman2kalman_construct(const float deltaT, const float sigmaQ, const float sigmaR, const float epsilon) {
*y = kalman->x_lm1lm1->array[1*(kalman->x_lm1lm1->nCols)+0];
*z = kalman->x_lm1lm1->array[2*(kalman->x_lm1lm1->nCols)+0];
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_KALMAN2KALMAN
-#define __ODAS_SYSTEM_KALMAN2KALMAN
-
- /**
- * \file kalman2kalman.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <math.h>
-
- #include "../signal/postprob.h"
- #include "../signal/kalman.h"
- #include "../signal/pot.h"
- #include "../signal/target.h"
- #include "../utils/matrix.h"
-
- typedef struct kalman2kalman_obj {
-
- float epsilon;
-
- float deltaT;
- float sigmaQ;
- float sigmaR;
-
- matrix_obj * F;
- matrix_obj * Ft;
- matrix_obj * Q;
- matrix_obj * H;
- matrix_obj * Ht;
- matrix_obj * R;
-
- matrix_obj * FP;
- matrix_obj * FPFt;
-
- matrix_obj * K;
- matrix_obj * PHt;
- matrix_obj * HP;
- matrix_obj * HPHt;
- matrix_obj * HPHt_R;
- matrix_obj * HPHt_Rinv;
- matrix_obj * Hx;
- matrix_obj * z;
- matrix_obj * z_Hx;
- matrix_obj * Kz_Hx;
- matrix_obj * pKz_Hx;
- matrix_obj * KHP;
- matrix_obj * pKHP;
-
- } kalman2kalman_obj;
-
- kalman2kalman_obj * kalman2kalman_construct(const float deltaT, const float sigmaQ, const float sigmaR, const float epsilon);
-
- void kalman2kalman_destroy(kalman2kalman_obj * obj);
-
- void kalman2kalman_init_pots(kalman2kalman_obj * obj, const pots_obj * pots, const unsigned int iPot, kalman_obj * kalman);
-
- void kalman2kalman_init_targets(kalman2kalman_obj * obj, const targets_obj * targets, const unsigned int iTarget, kalman_obj * kalman);
-
- void kalman2kalman_predict(kalman2kalman_obj * obj, kalman_obj * kalman);
-
- void kalman2kalman_predict_static(kalman2kalman_obj * obj, kalman_obj * kalman);
-
- void kalman2kalman_update(kalman2kalman_obj * obj, const postprobs_obj * postprobs, const unsigned int iTrack, const pots_obj * pots, kalman_obj * kalman);
-
- void kalman2kalman_update_static(kalman2kalman_obj * obj, const postprobs_obj * postprobs, const unsigned int iTrack, const pots_obj * pots, kalman_obj * kalman);
-
- void kalman2kalman_estimate(kalman2kalman_obj * obj, const kalman_obj * kalman, float * x, float * y, float * z);
-
-#endif
\ No newline at end of file
*
*/
- #include "mixture2mixture.h"
+ #include <system/mixture2mixture.h>
mixture2mixture_obj * mixture2mixture_construct(const gaussians_1d_obj * active_gmm, const gaussians_1d_obj * inactive_gmm, const float diffuse_cst, const float Pfalse, const float Pnew, const float Ptrack, const float epsilon) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_MIXTURE2MIXTURE
-#define __ODAS_SYSTEM_MIXTURE2MIXTURE
-
- /**
- * \file mixture2mixture.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <math.h>
-
- #include "../utils/gaussian.h"
- #include "../signal/coherence.h"
- #include "../signal/mixture.h"
- #include "../signal/pot.h"
- #include "../signal/postprob.h"
-
- typedef struct mixture2mixture_obj {
-
- gaussians_1d_obj * active;
- gaussians_1d_obj * inactive;
- float diffuse;
-
- float Pfalse;
- float Pnew;
- float Ptrack;
- float epsilon;
-
- } mixture2mixture_obj;
-
- mixture2mixture_obj * mixture2mixture_construct(const gaussians_1d_obj * active_gmm, const gaussians_1d_obj * inactive_gmm, const float diffuse_cst, const float Pfalse, const float Pnew, const float Ptrack, const float epsilon);
-
- void mixture2mixture_destroy(mixture2mixture_obj * obj);
-
- void mixture2mixture_process(mixture2mixture_obj * obj, mixture_obj * mixture, const pots_obj * pots, const coherences_obj * coherences, postprobs_obj * postprobs);
-
-#endif
\ No newline at end of file
*
*/
- #include "particle2coherence.h"
+ #include <system/particle2coherence.h>
particle2coherence_obj * particle2coherence_construct(const float sigmaR) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_PARTICLE2COHERENCE
-#define __ODAS_SYSTEM_PARTICLE2COHERENCE
-
- /**
- * \file particle2coherence.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../utils/gaussian.h"
- #include "../signal/particle.h"
- #include "../signal/coherence.h"
- #include "../signal/pot.h"
-
- typedef struct particle2coherence_obj {
-
- float sigmaR;
- float expScale;
- float expFactor;
-
- } particle2coherence_obj;
-
- particle2coherence_obj * particle2coherence_construct(const float sigmaR);
-
- void particle2coherence_destroy(particle2coherence_obj * obj);
-
- void particle2coherence_process(particle2coherence_obj * obj, const particles_obj * particles, const pots_obj * pots, const unsigned int iTrack, coherences_obj * coherences);
-
-#endif
\ No newline at end of file
*
*/
- #include "particle2particle.h"
+ #include <system/particle2particle.h>
particle2particle_obj * particle2particle_construct(const unsigned int nParticles, const float deltaT, const float st_alpha, const float st_beta, const float st_ratio, const float ve_alpha, const float ve_beta, const float ve_ratio, const float ac_alpha, const float ac_beta, const float ac_ratio, const double epsilon, const float sigmaR, const float Nmin) {
*y = yTotal;
*z = zTotal;
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_PARTICLE2PARTICLE
-#define __ODAS_SYSTEM_PARTICLE2PARTICLE
-
- /**
- * \file particle2particle.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../utils/gaussian.h"
- #include "../utils/random.h"
- #include "../signal/particle.h"
- #include "../signal/postprob.h"
- #include "../signal/pot.h"
- #include "../signal/target.h"
-
- typedef struct particle2particle_obj {
-
- unsigned int nParticles;
- float deltaT;
-
- float alphas[3];
- float betas[3];
- float as[3];
- float bs[3];
- float ratios[3];
-
- float sigmaR;
- float expScale;
- float expFactor;
-
- float * pdf_ratio;
- unsigned int * indexes_ratio;
- random_obj * rnd_ratio;
-
- float * pdf_weight;
- unsigned int * indexes_weight;
- random_obj * rnd_weight;
-
- float * realisation_normal;
- double epsilon;
- normaloff_obj * normaloff;
-
- float * sum_P_p_x_O;
- particles_obj * particles;
-
- float Nmin;
-
- } particle2particle_obj;
-
- particle2particle_obj * particle2particle_construct(const unsigned int nParticles, const float deltaT, const float st_alpha, const float st_beta, const float st_ratio, const float ve_alpha, const float ve_beta, const float ve_ratio, const float ac_alpha, const float ac_beta, const float ac_ratio, const double epsilon, const float sigmaR, const float Nmin);
-
- void particle2particle_destroy(particle2particle_obj * obj);
-
- void particle2particle_init_pots(particle2particle_obj * obj, const pots_obj * pots, const unsigned int iPot, particles_obj * particles);
-
- void particle2particle_init_targets(particle2particle_obj * obj, const targets_obj * targets, const unsigned int iTarget, particles_obj * particles);
-
- void particle2particle_predict(particle2particle_obj * obj, particles_obj * particles);
-
- void particle2particle_predict_static(particle2particle_obj * obj, particles_obj * particles);
-
- void particle2particle_update(particle2particle_obj * obj, const postprobs_obj * postprobs, const unsigned int iTrack, const pots_obj * pots, particles_obj * particles);
-
- void particle2particle_update_static(particle2particle_obj * obj, const postprobs_obj * postprobs, const unsigned int iTrack, const pots_obj * pots, particles_obj * particles);
-
- void particle2particle_estimate(const particle2particle_obj * obj, const particles_obj * particles, float * x, float * y, float * z);
-
-#endif
\ No newline at end of file
*
*/
- #include "pitch2category.h"
+ #include <system/pitch2category.h>
pitch2category_obj * pitch2category_construct_zero(const unsigned int nSeps, const float tauMin, const float tauMax, const float deltaTauMax, const float alpha, const float gamma, const float phiMin, const float r0) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_PITCH2CATEGORY
-#define __ODAS_SYSTEM_PITCH2CATEGORY
-
- /**
- * \file pitch2category.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
- #include <math.h>
-
- #include "../signal/category.h"
- #include "../signal/pitch.h"
- #include "../signal/track.h"
-
- typedef struct pitch2category_obj {
-
- unsigned int nSeps;
-
- float tauMin;
- float tauMax;
- float deltaTauMax;
- float alpha;
- float gamma;
- float phiMin;
- float r0;
-
- float * tausNow;
- float * tausPrev;
- float * deltaTausNow;
- float * deltaTausPrev;
- float * phisNow;
- float * phisPrev;
- float * vs;
- float * rs;
- char * categories;
-
- } pitch2category_obj;
-
- pitch2category_obj * pitch2category_construct_zero(const unsigned int nSeps, const float tauMin, const float tauMax, const float deltaTauMax, const float alpha, const float gamma, const float phiMin, const float r0);
-
- void pitch2category_destroy(pitch2category_obj * obj);
-
- void pitch2category_process(pitch2category_obj * obj, const pitches_obj * pitches, const tracks_obj * tracks, categories_obj * categories);
-
-#endif
\ No newline at end of file
*
*/
- #include "steer2demixing.h"
+ #include <system/steer2demixing.h>
int count = 0;
+++ /dev/null
-#ifndef __ODAS_SYSTEM_STEER2DEMIXING
-#define __ODAS_SYSTEM_STEER2DEMIXING
-
- /**
- * \file steer2demixing.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
- #include <math.h>
-
- #include "../signal/demixing.h"
- #include "../signal/freq.h"
- #include "../signal/mask.h"
- #include "../signal/steer.h"
- #include "../signal/track.h"
-
- #include "../utils/cmatrix.h"
-
- typedef struct steer2demixing_ds_obj {
-
- unsigned int nSeps;
- unsigned int nChannels;
- unsigned int halfFrameSize;
- float epsilon;
-
- float * gains2;
-
- } steer2demixing_ds_obj;
-
- typedef struct steer2demixing_gss_obj {
-
- unsigned int nSeps;
- unsigned int nChannels;
- unsigned int halfFrameSize;
- float epsilon;
-
- float mu;
- float lambda;
-
- cmatrix_obj * X;
- cmatrix_obj * XH;
-
- cmatrix_obj ** Y;
- cmatrix_obj ** YH;
- cmatrix_obj ** Ryy;
- cmatrix_obj ** E;
- cmatrix_obj ** A;
- cmatrix_obj ** AH;
- cmatrix_obj ** Wn;
- cmatrix_obj ** Wnp1;
- cmatrix_obj ** dJ1;
- cmatrix_obj ** dJ2;
-
- cmatrix_obj ** dJ1_EY;
- cmatrix_obj ** dJ1_4EY;
- cmatrix_obj ** dJ1_4EYXH;
-
- cmatrix_obj ** dJ2_WA;
- cmatrix_obj ** dJ2_WAmI;
- cmatrix_obj ** dJ2_2WAmI;
- cmatrix_obj ** dJ2_2WAmIAH;
-
- cmatrix_obj ** alpha_dJ1;
- cmatrix_obj ** alpha_dJ1_p_dJ2;
- cmatrix_obj ** mu_alpha_dJ1_p_dJ2;
- cmatrix_obj ** one_m_lambda_mu_Wn;
- cmatrix_obj ** one_m_lambda_mu_Wn_m_mu_alpha_dJ1_p_dJ2;
-
- } steer2demixing_gss_obj;
-
- typedef struct steer2demixing_mvdr_obj {
-
- } steer2demixing_mvdr_obj;
-
-
- steer2demixing_ds_obj * steer2demixing_ds_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize, const float epsilon);
-
- void steer2demixing_ds_destroy(steer2demixing_ds_obj * obj);
-
- void steer2demixing_ds_process(steer2demixing_ds_obj * obj, const tracks_obj * tracks, const steers_obj * steers, const masks_obj * masks, demixings_obj * demixings);
-
-
- steer2demixing_gss_obj * steer2demixing_gss_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize, const float mu, const float lambda, const float epsilon);
-
- void steer2demixing_gss_destroy(steer2demixing_gss_obj * obj);
-
- void steer2demixing_gss_process(steer2demixing_gss_obj * obj, const tracks_obj * tracksPrev, const tracks_obj * tracks, const steers_obj * steers, const masks_obj * masks, const freqs_obj * freqs, const demixings_obj * demixingsPrev, demixings_obj * demixings);
-
-
- steer2demixing_mvdr_obj * steer2demixing_mvdr_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize, const float alpha, const float sigma, const unsigned int deltaK);
-
- void steer2demixing_mvdr_destroy(steer2demixing_mvdr_obj * obj);
-
- void steer2demixing_mvdr_process(steer2demixing_mvdr_obj * obj, const tracks_obj * tracks, const steers_obj * steers, const masks_obj * masks, const freqs_obj * freqs, demixings_obj * demixings);
-
-
-#endif
\ No newline at end of file
*
*/
- #include "track2gain.h"
+ #include <system/track2gain.h>
track2gain_obj * track2gain_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const float * directions, const float * direction) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_TRACK2GAIN
-#define __ODAS_SYSTEM_TRACK2GAIN
-
- /**
- * \file track2gain.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "../signal/beampattern.h"
- #include "../signal/track.h"
- #include "../signal/gain.h"
-
- #include <stdlib.h>
- #include <string.h>
- #include <math.h>
-
- typedef struct track2gain_obj {
-
- unsigned int nSeps;
- unsigned int nChannels;
- float * directions;
- float * direction;
-
- } track2gain_obj;
-
- track2gain_obj * track2gain_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const float * directions, const float * direction);
-
- void track2gain_destroy(track2gain_obj * obj);
-
- void track2gain_process(track2gain_obj * obj, const beampatterns_obj * beampatterns_mics, const beampatterns_obj * beampatterns_spatialfilter, const tracks_obj * tracks, gains_obj * gains);
-
-
-#endif
\ No newline at end of file
*
*/
- #include "track2steer.h"
+ #include <system/track2steer.h>
track2steer_obj * track2steer_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize, const float c, const unsigned int fS, const float * mics) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_TRACK2STEER
-#define __ODAS_SYSTEM_TRACK2STEER
-
- /**
- * \file track2steer.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
- #include <math.h>
-
- #include "../signal/gain.h"
- #include "../signal/mask.h"
- #include "../signal/track.h"
- #include "../signal/steer.h"
-
- typedef struct track2steer_obj {
-
- unsigned int nSeps;
- unsigned int nChannels;
- unsigned int halfFrameSize;
- float c;
- unsigned int fS;
- float * mics;
-
- float * factor;
- float speed;
-
- } track2steer_obj;
-
- track2steer_obj * track2steer_construct_zero(const unsigned int nSeps, const unsigned int nChannels, const unsigned int halfFrameSize, const float c, const unsigned int fS, const float * mics);
-
- void track2steer_destroy(track2steer_obj * obj);
-
- void track2steer_process(track2steer_obj * obj, const tracks_obj * tracks, const gains_obj * gains, const masks_obj * masks, steers_obj * steers);
-
-#endif
\ No newline at end of file
*
*/
- #include "xcorr2aimg.h"
+ #include <system/xcorr2aimg.h>
xcorr2aimg_obj * xcorr2aimg_construct_zero(const unsigned int aimgSize) {
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_SYSTEM_XCORR2AIMG
-#define __ODAS_SYSTEM_XCORR2AIMG
-
- /**
- * \file xcorr2aimg.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
-
- #include "../signal/tdoa.h"
- #include "../signal/index.h"
- #include "../signal/xcorr.h"
- #include "../signal/aimg.h"
- #include "../signal/spatialindex.h"
-
- //! Update the states of the particle filter
- typedef struct xcorr2aimg_obj {
-
- unsigned int aimgSize; ///< Number of points scanned.
-
- } xcorr2aimg_obj;
-
- xcorr2aimg_obj * xcorr2aimg_construct_zero(const unsigned int aimgSize);
-
- void xcorr2aimg_destroy(xcorr2aimg_obj * obj);
-
- void xcorr2aimg_process(xcorr2aimg_obj * obj, const tdoas_obj * tdoas, const indexes_obj * indexes, const spatialindexes_obj * spatialindexes, const unsigned int iCoarse, const xcorrs_obj * xcorrs, aimg_obj * aimg);
-
-#endif
\ No newline at end of file
*
*/
- #include "xcorr2xcorr.h"
+ #include <system/xcorr2xcorr.h>
xcorr2xcorr_obj * xcorr2xcorr_construct_zero(const unsigned int frameSize) {
+++ /dev/null
-#ifndef __ODAS_SYSTEM_XCORR
-#define __ODAS_SYSTEM_XCORR
-
- /**
- * \file xcorr2xcorr.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
-
- #include "../signal/delta.h"
- #include "../signal/xcorr.h"
- #include "../signal/tdoa.h"
- #include "../signal/pair.h"
-
- typedef struct xcorr2xcorr_obj {
-
- unsigned int frameSize; ///< Number of samples per frame.
-
- } xcorr2xcorr_obj;
-
- xcorr2xcorr_obj * xcorr2xcorr_construct_zero(const unsigned int frameSize);
-
- void xcorr2xcorr_destroy(xcorr2xcorr_obj * obj);
-
- void xcorr2xcorr_process_max(xcorr2xcorr_obj * obj, const xcorrs_obj * xcorrs, const tdoas_obj * tdoas, const deltas_obj * deltas, const pairs_obj * pairs, xcorrs_obj * xcorrsMax);
-
- void xcorr2xcorr_process_reset(xcorr2xcorr_obj * obj, const tdoas_obj * tdoas, const deltas_obj * deltas, const pairs_obj * pairs, const unsigned int iPoint, xcorrs_obj * xcorrs);
-
-#endif
\ No newline at end of file
*
*/
- #include "cmatrix.h"
+ #include <utils/cmatrix.h>
cmatrix_obj * cmatrix_construct_zero(const unsigned int nRows, const unsigned int nCols) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_UTILS_CMATRIX
-#define __ODAS_UTILS_CMATRIX
-
- /**
- * \file cmatrix.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <math.h>
-
- typedef struct cmatrix_obj {
-
- float * real;
- float * imag;
- unsigned int nRows;
- unsigned int nCols;
-
- } cmatrix_obj;
-
- cmatrix_obj * cmatrix_construct_zero(const unsigned int nRows, const unsigned int nCols);
-
- cmatrix_obj * cmatrix_construct_matrix(const cmatrix_obj * cmatrix);
-
- void cmatrix_copy_zero(cmatrix_obj * obj);
-
- void cmatrix_copy_cmatrix(cmatrix_obj * obj, const cmatrix_obj * cmatrix);
-
- void cmatrix_destroy(cmatrix_obj * obj);
-
- void cmatrix_transpose(cmatrix_obj * obj, const cmatrix_obj * src);
-
- void cmatrix_hermitian(cmatrix_obj * obj, const cmatrix_obj * src);
-
- void cmatrix_add(cmatrix_obj * obj, const cmatrix_obj * src1, const cmatrix_obj * src2);
-
- void cmatrix_sub(cmatrix_obj * obj, const cmatrix_obj * src1, const cmatrix_obj * src2);
-
- void cmatrix_mul(cmatrix_obj * obj, const cmatrix_obj * src1, const cmatrix_obj * src2);
-
- void cmatrix_scale(cmatrix_obj * obj, const cmatrix_obj * src, const float scale);
-
- void cmatrix_zero(cmatrix_obj * obj);
-
- void cmatrix_printf(const cmatrix_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "fft.h"
+ #include <utils/fft.h>
fft_obj * fft_construct(const unsigned int frameSize) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_UTILS_FFT
-#define __ODAS_UTILS_FFT
-
- /**
- * \file cmatrix.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <fftw3.h>
- #include <stdlib.h>
-
- //! FFT object.
- typedef struct fft_obj {
-
- unsigned int frameSize; ///< Frame size (in samples).
- unsigned int halfFrameSize; ///< Half frame size (frame size divided by 2 plus 1).
- fftwf_plan R2C; ///< FFTW plan for FFT from real to complex.
- fftwf_plan C2R; ///< FFTW plan for FFT from complex to real.
- float * realArray; ///< Array that holds all real values.
- fftwf_complex * complexArray; ///< Array that holds all complex values.
-
- } fft_obj;
-
- /** Constructor. Initialize all fields to perform FFT.
- \param size FFT size (in samples).
- \return Pointer to the instantiated object.
- */
- fft_obj * fft_construct(const unsigned int size);
-
- /** Destructor. Free memory.
- \param obj Object to be destroyed.
- */
- void fft_destroy(fft_obj * obj);
-
- /** Perform Fast Fourier Transform (real vector as input, complex vector as output).
- \param obj Object used.
- \param in Pointer to the real array used for input.
- \param out Pointer to the complex array used for output.
- */
- void fft_r2c(fft_obj * obj, const float * in, float * out);
-
- /** Perform Inverse Fast Fourier Transform (complex vector as input, real vector as output).
- \param obj Object used.
- \param in Pointer to the complex array used for input.
- \param out Pointer to the real array used for output.
- */
- void fft_c2r(fft_obj * obj, const float * in, float * out);
-
-#endif
\ No newline at end of file
*
*/
- #include "fifo.h"
+ #include <utils/fifo.h>
fifo_obj * fifo_construct_zero(const unsigned int nMaxElements) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_UTILS_FIFO
-#define __ODAS_UTILS_FIFO
-
- /**
- * \file fifo.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <pthread.h>
- #include <semaphore.h>
- #include <stdio.h>
-
- typedef struct fifo_obj {
-
- void ** array;
- unsigned int nElements;
- unsigned int nMaxElements;
-
- pthread_mutex_t use;
- sem_t push;
- sem_t pop;
-
- } fifo_obj;
-
- fifo_obj * fifo_construct_zero(const unsigned int nMaxElements);
-
- void fifo_destroy(fifo_obj * obj);
-
- void fifo_push(fifo_obj * obj, void * element);
-
- void * fifo_pop(fifo_obj * obj);
-
- int fifo_nElements(fifo_obj * obj);
-
- void fifo_printf(const fifo_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "gaussian.h"
+ #include <utils/gaussian.h>
gaussian_1d_obj * gaussian_1d_construct_zero(void) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_UTILS_GAUSSIAN
-#define __ODAS_UTILS_GAUSSIAN
-
- /**
- * \file gaussian.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <math.h>
-
- //! 1-D gaussian
- typedef struct gaussian_1d_obj {
-
- float weight; ///< Weight of the gaussian.
- float mu_x; ///< Mean of the gaussian.
- float sigma_x; ///< Standard deviation of the gaussian.
- float scaleFactor; ///< Precomputed scale factor for the exponential function.
-
- } gaussian_1d_obj;
-
- //! 2-D gaussian
- typedef struct gaussian_2d_obj {
-
- float weight; ///< Weight of the gaussian.
- float mu_x; ///< X-component of the mean of the gaussian.
- float mu_y; ///< Y-component of the mean of the gaussian.
- float sigma_x; ///< X-component of the standard deviation of the gaussian.
- float sigma_y; ///< Y-component of the standard deviation of the gaussian.
- float scaleFactor; ///< Precomputed scale factor for the exponential function.
-
- } gaussian_2d_obj;
-
- //! 3-D gaussian
- typedef struct gaussian_3d_obj {
-
- float weight; ///< Weight of the gaussian.
- float mu_x; ///< X-component of the mean of the gaussian.
- float mu_y; ///< Y-component of the mean of the gaussian.
- float mu_z; ///< Z-component of the mean of the gaussian.
- float sigma_x; ///< X-component of the standard deviation of the gaussian.
- float sigma_y; ///< Y-component of the standard deviation of the gaussian.
- float sigma_z; ///< Z-component of the standard deviation of the gaussian.
- float scaleFactor; ///< Precomputed scale factor for the exponential function.
-
- } gaussian_3d_obj;
-
- //! 1-D gaussian mixture model
- typedef struct gaussians_1d_obj {
-
- unsigned int nSignals; ///< Number of gaussians.
- gaussian_1d_obj ** array; ///< List of gaussians.
-
- } gaussians_1d_obj;
-
- //! 2-D gaussian mixture model
- typedef struct gaussians_2d_obj {
-
- unsigned int nSignals; ///< Number of gaussians.
- gaussian_2d_obj ** array; ///< List of gaussians.
-
- } gaussians_2d_obj;
-
- //! 3-D gaussian mixture model
- typedef struct gaussians_3d_obj {
-
- unsigned int nSignals; ///< Number of gaussians.
- gaussian_3d_obj ** array; ///< List of gaussians.
-
- } gaussians_3d_obj;
-
- /** Constructor. Initialize all fields to zero (weight to 1, mean to 0, standard deviation to 1).
- \return Pointer to the instantiated object.
- */
- gaussian_1d_obj * gaussian_1d_construct_zero(void);
-
- /** Constructor. Initialize all fields to zero (weight to 1, means to 0, standard deviations to 1).
- \return Pointer to the instantiated object.
- */
- gaussian_2d_obj * gaussian_2d_construct_zero(void);
-
- /** Constructor. Initialize all fields to zero (weight to 1, means to 0, standard deviations to 1).
- \return Pointer to the instantiated object.
- */
- gaussian_3d_obj * gaussian_3d_construct_zero(void);
-
- /** Constructor. Initialize all fields to weight, mu and sigma.
- \param weight Weight value.
- \param mu_x Mean value.
- \param sigma_x Standard deviation value.
- \return Pointer to the instantiated object.
- */
- gaussian_1d_obj * gaussian_1d_construct_weightmusigma(const float weight, const float mu_x, const float sigma_x);
-
- /** Constructor. Initialize all fields to weight, mus and sigmas.
- \param weight Weight value.
- \param mu_x X-coordinate of the mean.
- \param mu_y Y-coordinate of the mean.
- \param sigma_x X-coordinate of the standard deviation.
- \param sigma_y Y-coordinate of the standard deviation.
- \return Pointer to the instantiated object.
- */
- gaussian_2d_obj * gaussian_2d_construct_weightmusigma(const float weight, const float mu_x, const float mu_y, const float sigma_x, const float sigma_y);
-
- /** Constructor. Initialize all fields to weight, mus and sigmas.
- \param weight Weight value.
- \param mu_x X-coordinate of the mean.
- \param mu_y Y-coordinate of the mean.
- \param mu_z Z-coordinate of the mean.
- \param sigma_x X-coordinate of the standard deviation.
- \param sigma_y Y-coordinate of the standard deviation.
- \param sigma_z Z-coordinate of the standard deviation.
- \return Pointer to the instantiated object.
- */
- gaussian_3d_obj * gaussian_3d_construct_weightmusigma(const float weight, const float mu_x, const float mu_y, const float mu_z, const float sigma_x, const float sigma_y, const float sigma_z);
-
- /** Constructor. Clone the object.
- \param gaussian Object to cloned.
- \return Pointer to the instantiated object.
- */
- gaussian_1d_obj * gaussian_1d_construct_gaussian(const gaussian_1d_obj * gaussian);
-
- /** Constructor. Clone the object.
- \param gaussian Object to cloned.
- \return Pointer to the instantiated object.
- */
- gaussian_2d_obj * gaussian_2d_construct_gaussian(const gaussian_2d_obj * gaussian);
-
- /** Constructor. Clone the object.
- \param gaussian Object to cloned.
- \return Pointer to the instantiated object.
- */
- gaussian_3d_obj * gaussian_3d_construct_gaussian(const gaussian_3d_obj * gaussian);
-
- /** Destructor. Free memory.
- \param obj Object to be destroyed.
- */
- void gaussian_1d_destroy(gaussian_1d_obj * obj);
-
- /** Destructor. Free memory.
- \param obj Object to be destroyed.
- */
- void gaussian_2d_destroy(gaussian_2d_obj * obj);
-
- /** Destructor. Free memory.
- \param obj Object to be destroyed.
- */
- void gaussian_3d_destroy(gaussian_3d_obj * obj);
-
- /** Evaluate the gaussian at x.
- \param obj Object to be used.
- \param x Value of x.
- \return Value of the gaussian.
- */
- float gaussian_1d_eval(const gaussian_1d_obj * obj, const float x);
-
- /** Evaluate the gaussian at x and y.
- \param obj Object to be used.
- \param x Value of x.
- \param y Value of y.
- \return Value of the gaussian.
- */
- float gaussian_2d_eval(const gaussian_2d_obj * obj, const float x, const float y);
-
- /** Evaluate the gaussian at x, y and z.
- \param obj Object to be used.
- \param x Value of x.
- \param y Value of y.
- \param z Value of z.
- \return Value of the gaussian.
- */
- float gaussian_3d_eval(const gaussian_3d_obj * obj, const float x, const float y, const float z);
-
- /** Print the content of the gaussian.
- \param obj Object to be used.
- */
- void gaussian_1d_printf(const gaussian_1d_obj * obj);
-
- /** Print the content of the gaussian.
- \param obj Object to be used.
- */
- void gaussian_2d_printf(const gaussian_2d_obj * obj);
-
- /** Print the content of the gaussian.
- \param obj Object to be used.
- */
- void gaussian_3d_printf(const gaussian_3d_obj * obj);
-
- /** Constructor. Fill the array of objects with null pointers.
- \param nSignals Number of gaussians.
- \return Pointer to the instantiated object.
- */
- gaussians_1d_obj * gaussians_1d_construct_null(const unsigned int nSignals);
-
- /** Constructor. Fill the array of objects with null pointers.
- \param nSignals Number of gaussians.
- \return Pointer to the instantiated object.
- */
- gaussians_2d_obj * gaussians_2d_construct_null(const unsigned int nSignals);
-
- /** Constructor. Fill the array of objects with null pointers.
- \param nSignals Number of gaussians.
- \return Pointer to the instantiated object.
- */
- gaussians_3d_obj * gaussians_3d_construct_null(const unsigned int nSignals);
-
- /** Constructor. Clone the gaussians.
- \param gaussians Object to be cloned.
- \return Pointer to the instantiated object.
- */
- gaussians_1d_obj * gaussians_1d_construct_gaussians(const gaussians_1d_obj * gaussians);
-
- /** Constructor. Clone the gaussians.
- \param gaussians Object to be cloned.
- \return Pointer to the instantiated object.
- */
- gaussians_2d_obj * gaussians_2d_construct_gaussians(const gaussians_2d_obj * gaussians);
-
- /** Constructor. Clone the gaussians.
- \param gaussians Object to be cloned.
- \return Pointer to the instantiated object.
- */
- gaussians_3d_obj * gaussians_3d_construct_gaussians(const gaussians_3d_obj * gaussians);
-
- /** Destructor. Free memory.
- \param obj Object to be destroyed.
- */
- void gaussians_1d_destroy(gaussians_1d_obj * obj);
-
- /** Destructor. Free memory.
- \param obj Object to be destroyed.
- */
- void gaussians_2d_destroy(gaussians_2d_obj * obj);
-
- /** Destructor. Free memory.
- \param obj Object to be destroyed.
- */
- void gaussians_3d_destroy(gaussians_3d_obj * obj);
-
- /** Evaluate the gaussian mixture model (GMM) at x.
- \param obj Object to be used.
- \param x Value of x.
- \return Value of the GMM.
- */
- float gaussians_1d_eval(const gaussians_1d_obj * obj, const float x);
-
- /** Evaluate the gaussian mixture model (GMM) at x and y.
- \param obj Object to be used.
- \param x Value of x.
- \param y Value of y.
- \return Value of the GMM.
- */
- float gaussians_2d_eval(const gaussians_2d_obj * obj, const float x, const float y);
-
- /** Evaluate the gaussian mixture model (GMM) at x, y and z.
- \param obj Object to be used.
- \param x Value of x.
- \param y Value of y.
- \param z Value of z.
- \return Value of the GMM.
- */
- float gaussians_3d_eval(const gaussians_3d_obj * obj, const float x, const float y, const float z);
-
- /** Print the content of the gaussian mixture model (GMM).
- \param obj Object to be used.
- */
- void gaussians_1d_printf(const gaussians_1d_obj * obj);
-
- /** Print the content of the gaussian mixture model (GMM).
- \param obj Object to be used.
- */
- void gaussians_2d_printf(const gaussians_2d_obj * obj);
-
- /** Print the content of the gaussian mixture model (GMM).
- \param obj Object to be used.
- */
- void gaussians_3d_printf(const gaussians_3d_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "gaussjordan.h"
+ #include <utils/gaussjordan.h>
gaussjordan_obj * gaussjordan_construct_zero(const unsigned int nRowsCols, const float epsilon) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_UTILS_GAUSSJORDAN
-#define __ODAS_UTILS_GAUSSJORDAN
-
- /**
- * \file gaussjordan.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <math.h>
-
- typedef struct gaussjordan_obj {
-
- unsigned int nRowsCols;
- float * array;
- float epsilon;
-
- } gaussjordan_obj;
-
- gaussjordan_obj * gaussjordan_construct_zero(const unsigned int nRowsCols, const float epsilon);
-
- void gaussjordan_destroy(gaussjordan_obj * obj);
-
- void gaussjordan_process(gaussjordan_obj * obj, const float * src, float * dest);
-
-#endif
\ No newline at end of file
*
*/
- #include "inverse.h"
+ #include <utils/inverse.h>
inverse_real_obj * inverse_real_construct_zero(const unsigned int nRowsCols, const float epsilon) {
memcpy(dest->real, obj->ApBAinvB_inv->array, sizeof(float) * obj->nRowsCols * obj->nRowsCols);
memcpy(dest->imag, obj->mBpABinvA_inv->array, sizeof(float) * obj->nRowsCols * obj->nRowsCols);
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_UTILS_INVERSE
-#define __ODAS_UTILS_INVERSE
-
- /**
- * \file inverse.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include "gaussjordan.h"
- #include "matrix.h"
- #include "cmatrix.h"
-
- typedef struct inverse_real_obj {
-
- unsigned int nRowsCols;
-
- gaussjordan_obj * gaussjordan;
-
- } inverse_real_obj;
-
- typedef struct inverse_complex_obj {
-
- unsigned int nRowsCols;
-
- gaussjordan_obj * gaussjordan;
-
- matrix_obj * A;
- matrix_obj * B;
-
- matrix_obj * Ainv;
- matrix_obj * Binv;
-
- matrix_obj * BAinv;
- matrix_obj * ABinv;
-
- matrix_obj * BAinvB;
- matrix_obj * ABinvA;
-
- matrix_obj * ApBAinvB;
- matrix_obj * BpABinvA;
-
- matrix_obj * ApBAinvB_inv;
- matrix_obj * BpABinvA_inv;
-
- matrix_obj * mBpABinvA_inv;
-
- } inverse_complex_obj;
-
- inverse_real_obj * inverse_real_construct_zero(const unsigned int nRowsCols, const float epsilon);
-
- void inverse_real_destroy(inverse_real_obj * obj);
-
- void inverse_real_process(inverse_real_obj * obj, const matrix_obj * src, matrix_obj * dest);
-
- inverse_complex_obj * inverse_complex_construct_zero(const unsigned int nRowsCols, const float epsilon);
-
- void inverse_complex_destroy(inverse_complex_obj * obj);
-
- void inverse_complex_process(inverse_complex_obj * obj, const cmatrix_obj * src, cmatrix_obj * dest);
-
-#endif
\ No newline at end of file
*
*/
- #include "matrix.h"
+ #include <utils/matrix.h>
matrix_obj * matrix_construct_zero(const unsigned int nRows, const unsigned int nCols) {
}
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_UTILS_MATRIX
-#define __ODAS_UTILS_MATRIX
-
- /**
- * \file matrix.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <math.h>
-
- //! Matrix
- typedef struct matrix_obj {
-
- float * array; ///< Array of elements in the matrix.
- unsigned int nRows; ///< Number of rows.
- unsigned int nCols; ///< Number of columns.
-
- } matrix_obj;
-
- /** Constructor. Initialize all elements to zero in a matrix nRows x nCols.
- \param nRows Number of rows.
- \param nCols Number of columns.
- \return Pointer to the instantiated object.
- */
- matrix_obj * matrix_construct_zero(const unsigned int nRows, const unsigned int nCols);
-
- /** Constructor. Clone the object.
- \param matrix Object to be cloned.
- \return Pointer to the instantiated object.
- */
- matrix_obj * matrix_construct_matrix(const matrix_obj * matrix);
-
- /** Set elements to 0.
- \param obj Object to be used.
- */
- void matrix_copy_zero(matrix_obj * obj);
-
- /** Set fields to the field values of the model object. No memory allocated.
- \param matrix Object to be copied.
- \param obj Object to be modified.
- */
- void matrix_copy_matrix(matrix_obj * obj, const matrix_obj * matrix);
-
- /** Destructor. Free memory.
- \param obj Object to be destroyed.
- */
- void matrix_destroy(matrix_obj * obj);
-
- /** Compute the matrix transpose.
- \param src Matrix to be transpose.
- \param obj Transposed matrix.
- */
- void matrix_transpose(matrix_obj * obj, const matrix_obj * src);
-
- /** Add two matrices.
- \param src1 First matrix to be added.
- \param src2 Second matrix to be added.
- \param obj Result of the addition.
- */
- void matrix_add(matrix_obj * obj, const matrix_obj * src1, const matrix_obj * src2);
-
- /** Subtract two matrices.
- \param src1 Matrix to be subtracted from.
- \param src2 Matrix to subtract.
- \param obj Result of the subtraction.
- */
- void matrix_sub(matrix_obj * obj, const matrix_obj * src1, const matrix_obj * src2);
-
- /** Multiply two matrices.
- \param src1 First matrix to be multiplied.
- \param src2 Second matrix to be multiplied.
- \param obj Result of the multiplication.
- */
- void matrix_mul(matrix_obj * obj, const matrix_obj * src1, const matrix_obj * src2);
-
- /** Inverse a matrix.
- \param src Matrix to be inverted.
- \param obj Inverted matrix.
- */
- void matrix_inv(matrix_obj * obj, const matrix_obj * src);
-
- /** Compute the determinant.
- \param obj Matrix which determinant is computed.
- \return Determinant value.
- */
- float matrix_det(const matrix_obj * obj);
-
- /** Multiply a matrix by a scalar.
- \param src Matrix to be scaled.
- \param scale Scaling factor.
- \param obj Scaled matrix.
- */
- void matrix_scale(matrix_obj * obj, const matrix_obj * src, const float scale);
-
- /** Print the content of the matrix.
- \param obj Object to be used.
- */
- void matrix_printf(const matrix_obj * obj);
-
-#endif
\ No newline at end of file
*
*/
- #include "pcm.h"
+ #include <utils/pcm.h>
float pcm_signedXXbits2normalized(const char * bytes, const unsigned int nBytes) {
+++ /dev/null
-#ifndef __ODAS_UTILS_PCM
-#define __ODAS_UTILS_PCM
-
- /**
- * \file pcm.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <math.h>
- #include <limits.h>
-
- float pcm_signedXXbits2normalized(const char * bytes, const unsigned int nBytes);
-
- void pcm_signedXXbits2json(const char * bytes, const unsigned int nBytes, char * json);
-
- void pcm_normalized2signedXXbits(const float sample, const unsigned int nBytes, char * bytes);
-
-#endif
\ No newline at end of file
*
*/
- #include "random.h"
+ #include <utils/random.h>
random_obj * random_construct_zero(const unsigned int N) {
+++ /dev/null
-#ifndef __ODAS_UTILS_RANDOM
-#define __ODAS_UTILS_RANDOM
-
- /**
- * \file random.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <time.h>
- #include <math.h>
-
- //! Random number generator
- typedef struct random_obj {
-
- unsigned int N; ///< Number of elements in the space
- unsigned int I; ///< Number of iterations to perform a binary search
- float * pdf; ///< Probability density function (probability mass function)
- float * cdf; ///< Cumulative density function
-
- } random_obj;
-
- //! Standard normal number generator
- typedef struct normal_obj {
-
- double epsilon; ///< Small value to perform the Box-Muller transform.
-
- } normal_obj;
-
- //! Standard normal number generator offline
- typedef struct normaloff_obj {
-
- unsigned int N; ///< Number of samples.
- float * values; ///< Normally distributed samples.
-
- } normaloff_obj;
-
- /** Constructor. Initialize all elements to zero.
- \param N Number of elements in the space.
- \return Pointer to the instantiated object.
- */
- random_obj * random_construct_zero(const unsigned int N);
-
- /** Destructor. Free memory.
- \param obj Object to be destroyed.
- */
- void random_destroy(random_obj * obj);
-
- /** Set the PDF.
- \param pdf Array that contains the PDF values.
- \param obj Object to be modified.
- */
- void random_pdf(random_obj * obj, const float * pdf);
-
- /** Pick element randomly according to the PDF, and return the index.
- \param nSamples Number of elements to pick.
- \param indexes Array that contains the returned indexes.
- \param obj Object to be used.
- */
- void random_generate(const random_obj * obj, const unsigned int nSamples, unsigned int * indexes);
-
- /** Constructor.
- \param epsilon Small value to perform the Box-Muller transform.
- \return Pointer of the instantiated object.
- */
- normal_obj * normal_construct_zero(const double epsilon);
-
- /** Destructor. Free memory.
- \param obj Object to be destroyed.
- */
- void normal_destroy(normal_obj * obj);
-
- /** Generate a random number according to a standard normal distribution.
- \param nSamples Number of random numbers to generate.
- \param values Array that contains the generated random numbers.
- \param obj Object to be used.
- */
- void normal_generate(const normal_obj * obj, const unsigned int nSamples, float * values);
-
- /** Constructor.
- \param epsilon Small value to perform the Box-Muller transform.
- \param N Number of random numbers generated offline and stored.
- \return Pointer of the instantiated object.
- */
- normaloff_obj * normaloff_construct_rnd(const double epsilon, const unsigned int N);
-
- /** Destructor. Free memory.
- \param obj Object to be destroyed.
- */
- void normaloff_destroy(normaloff_obj * obj);
-
- /** Generate a random number according to a standard normal distribution.
- \param nSamples Number of random numbers to generate.
- \param values Array that contains the generated random numbers.
- \param obj Object to be used.
- */
- void normaloff_generate(const normaloff_obj * obj, const unsigned int nSamples, float * values);
-
-
-#endif
\ No newline at end of file
*
*/
- #include "transcendental.h"
+ #include <utils/transcendental.h>
transcendental_obj * transcendental_construct_zero(const float minValue, const float maxValue, const unsigned int nElements) {
return obj->array[iElement];
- }
\ No newline at end of file
+ }
+++ /dev/null
-#ifndef __ODAS_UTILS_TRANSCENDENTAL
-#define __ODAS_UTILS_TRANSCENDENTAL
-
- /**
- * \file transcendental.h
- * \author François Grondin <francois.grondin2@usherbrooke.ca>
- * \version 2.0
- * \date 2018-03-18
- * \copyright
- *
- * 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.
- *
- * 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, see <http://www.gnu.org/licenses/>.
- *
- */
-
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
- #include <math.h>
-
- typedef struct transcendental_obj {
-
- float maxValue;
- float minValue;
- float interval;
-
- float * array;
- unsigned int nElements;
-
- } transcendental_obj;
-
- transcendental_obj * transcendental_construct_zero(const float minValue, const float maxValue, const unsigned int nElements);
-
- void transcendental_destroy(transcendental_obj * obj);
-
- float transcendental_process(const transcendental_obj * obj, const float value);
-
-#endif
\ No newline at end of file