MPS-Basic
Loading...
Searching...
No Matches
weight.cpp
Go to the documentation of this file.
1
#include "
weight.hpp
"
2
3
#include <cassert>
4
5
double
weight
(
double
dis,
double
re) {
6
assert(dis > 0.0);
7
8
if
(dis >= re) {
9
return
0.0;
10
11
}
else
{
12
return
(re / dis) - 1.0;
13
}
14
}
weight
double weight(double dis, double re)
Wight function for MPS method presented by Koshizuka and Oka, 1996
Definition
weight.cpp:5
weight.hpp
src
weight.cpp
Generated by
1.12.0