mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refactor: clang-format
This commit is contained in:
@@ -17,6 +17,6 @@ namespace swift::misc::math
|
||||
//! PI * 2
|
||||
constexpr double c_pi2 = c_pi * 2;
|
||||
|
||||
} // ns
|
||||
} // namespace swift::misc::math
|
||||
|
||||
#endif // guard
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||
|
||||
#include "misc/math/constants.h"
|
||||
#include "misc/math/mathutils.h"
|
||||
#include "misc/verify.h"
|
||||
|
||||
#include <QTime>
|
||||
#include <QtGlobal>
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#include <limits>
|
||||
|
||||
#include <QTime>
|
||||
#include <QtGlobal>
|
||||
|
||||
#include "misc/math/constants.h"
|
||||
#include "misc/verify.h"
|
||||
|
||||
namespace swift::misc::math
|
||||
{
|
||||
double CMathUtils::round(double value, int digits)
|
||||
@@ -170,4 +172,4 @@ namespace swift::misc::math
|
||||
const double sd = sqrt(varianceValue);
|
||||
return QPair<double, double>(sd, meanValue);
|
||||
}
|
||||
} // namespace
|
||||
} // namespace swift::misc::math
|
||||
|
||||
@@ -6,14 +6,16 @@
|
||||
#ifndef SWIFT_MISC_MATH_MATHUTILS_H
|
||||
#define SWIFT_MISC_MATH_MATHUTILS_H
|
||||
|
||||
#include "misc/swiftmiscexport.h"
|
||||
|
||||
#include <QRandomGenerator>
|
||||
#include <QtCore/qmath.h>
|
||||
#include <QPair>
|
||||
|
||||
#include <cmath>
|
||||
#include <numeric>
|
||||
|
||||
#include <QPair>
|
||||
#include <QRandomGenerator>
|
||||
|
||||
#include "misc/swiftmiscexport.h"
|
||||
|
||||
namespace swift::misc::math
|
||||
{
|
||||
//! Math utils
|
||||
@@ -109,6 +111,6 @@ namespace swift::misc::math
|
||||
//! The squared differences to mean
|
||||
static QList<double> squaredDifferences(const QList<double> &values, double meanValue);
|
||||
};
|
||||
} // namespace
|
||||
} // namespace swift::misc::math
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user