diff options
author | Erich Schubert <erich@debian.org> | 2014-01-22 16:23:20 +0100 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2019-03-09 22:30:38 +0000 |
commit | cd98487b2f040496b2dd35cfb3e01e745cd5fba2 (patch) | |
tree | 78a9e71cbf436021b1e9601a44250511b37faa02 /src/de/lmu/ifi/dbs/elki/algorithm/statistics/AddSingleScale.java | |
parent | ec7f409f6e795bbcc6f3c005687954e9475c600c (diff) | |
parent | 14a486343aef55f97f54082d6b542dedebf6f3ba (diff) |
Import Debian changes 0.6.0-1
elki (0.6.0-1) unstable; urgency=low
* New upstream final.
* 3DPC extension is not included, but may be uploaded as a separate
package when there is actual need (it is a demo software, not meant
for use outside of research, so just get the source code!)
* Upgrade to policy 3.9.5.0 (no changes)
Diffstat (limited to 'src/de/lmu/ifi/dbs/elki/algorithm/statistics/AddSingleScale.java')
-rw-r--r-- | src/de/lmu/ifi/dbs/elki/algorithm/statistics/AddSingleScale.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/de/lmu/ifi/dbs/elki/algorithm/statistics/AddSingleScale.java b/src/de/lmu/ifi/dbs/elki/algorithm/statistics/AddSingleScale.java index cbae17ca..8bd5f057 100644 --- a/src/de/lmu/ifi/dbs/elki/algorithm/statistics/AddSingleScale.java +++ b/src/de/lmu/ifi/dbs/elki/algorithm/statistics/AddSingleScale.java @@ -94,7 +94,11 @@ public class AddSingleScale implements Algorithm { for(DBIDIter iditer = rel.iterDBIDs(); iditer.valid(); iditer.advance()) { NumberVector<?> vec = rel.get(iditer); for(int d = 0; d < dim; d++) { - mm.put(vec.doubleValue(d)); + final double val = vec.doubleValue(d); + if(val != val) { + continue; // NaN + } + mm.put(val); } } LinearScale scale = new LinearScale(mm.getMin(), mm.getMax()); |