Ultra 0.9.4
Loading...
Searching...
No Matches
individual.cc File Reference
#include "kernel/de/individual.h"
#include "kernel/print_internal.h"
#include "kernel/random.h"
#include "utility/misc.h"
#include <algorithm>

Namespaces

namespace  ultra

Functions

double ultra::de::distance (const individual &lhs, const individual &rhs)

Detailed Description

Remarks
This file is part of ULTRA.
License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/

Function Documentation

◆ distance()

double ultra::de::distance ( const individual & lhs,
const individual & rhs )
nodiscard
Parameters
[in]lhsfirst term of comparison
[in]rhssecond term of comparison
Returns
a numeric measurement of the difference between lhs and rhs (taxicab / L1 distance)