fbgsense 0.1
Generic FBG spectrum analysis tool
segmentation_method_inflection.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 "segmentation_method.h"
10
11namespace fbgsense::segmentation
12{
14 {
15 public:
16 constexpr int get_type() override
17 {
18 return get_hash("INFLECTION_POINTS");
19 }
20
21 std::unique_ptr<segmentation_method> create() override
22 {
23 return std::make_unique<segmentation_method_inflection>();
24 }
25
26 std::vector<region_t> perform(spectrum_state spect, std::initializer_list<parameter_t> params) override;
27 };
28}
Definition: segmentation_method_inflection.h:14
std::unique_ptr< segmentation_method > create() override
Factory for the current concrete subclass.
Definition: segmentation_method_inflection.h:21
constexpr int get_type() override
Gets the unique identifier of the concrete subclass. Used for equal-type checking....
Definition: segmentation_method_inflection.h:16
Definition: segmentation_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