FERS 1.0.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
prototype_timing.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-only
2//
3// Copyright (c) 2006-2008 Marc Brooker and Michael Inggs
4// Copyright (c) 2008-present FERS Contributors (see AUTHORS.md).
5//
6// See the GNU GPLv2 LICENSE file in the FERS project root for more information.
7
8/**
9 * @file prototype_timing.cpp
10 * @brief Implementation file for the PrototypeTiming class.
11 */
12
13#include "prototype_timing.h"
14
15#include "core/logging.h"
16
17using logging::Level;
18
19namespace timing
20{
21 void PrototypeTiming::setAlpha(const RealType alpha, const RealType weight) noexcept
22 {
23 _alphas.emplace_back(alpha);
24 _weights.emplace_back(weight);
25 }
26
27 void PrototypeTiming::copyAlphas(std::vector<RealType>& alphas, std::vector<RealType>& weights) const noexcept
28 {
29 alphas = _alphas;
30 weights = _weights;
31 }
32}
void setAlpha(RealType alpha, RealType weight) noexcept
Sets an alpha and weight value.
void copyAlphas(std::vector< RealType > &alphas, std::vector< RealType > &weights) const noexcept
Copies the alphas and weights vectors.
double RealType
Type for real numbers.
Definition config.h:27
Header file for the logging system.
Header file for the PrototypeTiming class.