From: jprocter Date: Mon, 25 Sep 2006 14:05:41 +0000 (+0000) Subject: linear interpolation between sparse annotation element values. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c4dd9fbd848d3ffaa88134fb06bed794d69bc6f3;p=jalview.git linear interpolation between sparse annotation element values. --- diff --git a/src/jalview/io/VamsasDatastore.java b/src/jalview/io/VamsasDatastore.java index c9d5994..4b7445a 100755 --- a/src/jalview/io/VamsasDatastore.java +++ b/src/jalview/io/VamsasDatastore.java @@ -1285,8 +1285,22 @@ public class VamsasDatastore { // make bounds and automatic description strings for jalview user's benefit (these shouldn't be written back to vamsas document) boolean first=true; float min=0,max=1; + int lastval=0; for (int i=0;i1) { + // do some interpolation *between* points + if (arow[lastval]!=null) { + float interval = arow[i].value-arow[lastval].value; + interval/=i-lastval; + float base = arow[lastval].value; + for (int ip=lastval+1,np=0; ip