- self.labelStats['LAA%-950', tag] = 100.0 * (data < -950).sum() / float(data.size)
- self.labelStats['LAA%-925', tag] = 100.0 * (data < -925).sum() / float(data.size)
- self.labelStats['LAA%-910', tag] = 100.0 * (data < -910).sum() / float(data.size)
- self.labelStats['LAA%-856', tag] = 100.0 * (data < -856).sum() / float(data.size)
- self.labelStats['HAA%-700', tag] = 100.0 * (data > -700).sum() / float(data.size)
- self.labelStats['HAA%-600', tag] = 100.0 * (data > -600).sum() / float(data.size)
- self.labelStats['HAA%-500', tag] = 100.0 * (data > -500).sum() / float(data.size)
- self.labelStats['HAA%-250', tag] = 100.0 * (data > -250).sum() / float(data.size)
- self.labelStats['HAA%-600-250', tag] = 100.0 * (numpy.logical_and(data > -600,
- data < -250)).sum() / float(data.size)
- # self.labelStats[cycle,'Perc10',tag]=self.percentile(data,.1)
- # self.labelStats[cycle,'Perc15',tag]=self.percentile(data,.15)
- self.labelStats['Perc10',tag]=numpy.percentile(data,10)
- self.labelStats['Perc15',tag]=numpy.percentile(data,15)
- self.labelStats['Mean', tag] = mean_data
- self.labelStats['Std', tag] = std_data
- self.labelStats['Kurtosis', tag] = self.kurt(data, mean_data, std_data)
- self.labelStats['Skewness', tag] = self.skew(data, mean_data, std_data)
- self.labelStats['Ventilation Heterogeneity', tag] = self.vh(data)
- self.labelStats['Mass',tag] = self.mass(data,cubicMMPerVoxel)
- self.labelStats['Volume', tag] = data.size * cubicMMPerVoxel * litersPerCubicMM