| | |
| | | package com.iplatform.recvideo; |
| | | |
| | | import java.text.DecimalFormat; |
| | | import com.walker.infrastructure.utils.NumberFormatUtils; |
| | | |
| | | /** |
| | | * 相似视频对象定义。 |
| | |
| | | |
| | | private double score = 0; |
| | | |
| | | private DecimalFormat df = new DecimalFormat("#.00"); |
| | | // private DecimalFormat df = new DecimalFormat("#.00"); |
| | | |
| | | public String getId() { |
| | | return id; |
| | |
| | | return 0; |
| | | } |
| | | double s = (this.count)/100.0; |
| | | String score = df.format(s); |
| | | this.score = Double.parseDouble(score); |
| | | // String score = df.format(s); |
| | | // this.score = Double.parseDouble(score); |
| | | this.score = NumberFormatUtils.scaleAccuracy2(s); |
| | | return this.score; |
| | | } |
| | | |