Browse Source

fixed VolumeIsoValue.calcRelative

Alexander Rose 6 years ago
parent
commit
88c3516f09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mol-model/volume/data.ts

+ 1 - 1
src/mol-model/volume/data.ts

@@ -55,7 +55,7 @@ namespace VolumeIsoValue {
     }
 
     export function calcRelative(stats: VolumeData['dataStats'], absoluteValue: number): number {
-        return (stats.mean - absoluteValue) / stats.sigma
+        return (absoluteValue - stats.mean) / stats.sigma
     }
 
     export function toAbsolute(value: VolumeIsoValue): Absolute {