MPS-Basic
Loading...
Searching...
No Matches
weight.cpp
Go to the documentation of this file.
1#include "weight.hpp"
2
3#include <cassert>
4
5double 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}
double weight(double dis, double re)
Wight function for MPS method presented by Koshizuka and Oka, 1996
Definition weight.cpp:5