fbgsense 0.1
Generic FBG spectrum analysis tool
detection_method_localmax.h
1/*
2 * This file is a part of the project "fbgsense", which is released under MIT license.
3 * Copyright (c) 2022 Daniel Múčka, Masaryk University, Faculty of Informatics
4 * See file LICENSE or visit https://opensource.org/licenses/MIT for full license details.
5 */
6
7#pragma once
8
9#include "detection_method.h"
10
11namespace fbgsense::detection
12{
14 {
15 constexpr int get_type() override
16 {
17 return get_hash("LOCAL_MAXIMA");
18 }
19
20 std::unique_ptr<detection_method> create() override
21 {
22 return std::make_unique<detection_method_localmax>();
23 }
24
25 void perform(spectrum_state spect, std::initializer_list<parameter_t> params) override;
26 };
27}
Definition: detection_method_localmax.h:14
Definition: detection_method.h:16
constexpr int get_hash(const char str[])
Java string hashing function. http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/cl...
Definition: processor.h:24
Data structure reflecting spectrum's current state. Used in processors.
Definition: spectrum_state.h:19