Hello Josh,

Thank you for reply.

I rewrote            ratio_.resize( dim_, 1.0 )       in x10 like this:

if (ratio_.size() >= dim_){
    val dif = ratio_.size() - dim_;
  for (var i:Int = 0; i < dif; i++){
ratio_.removeLast();
  }
} else {
  val dif = dim_ - ratio_.size();
  for (var i:Int = 0; i < dif; i++){
ratio_.add(1.0);
  }
}

I guess this should work?

Best regards,
Olga
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to