Explorar o código

fixed VolumeIsoValue.calcRelative

Alexander Rose %!s(int64=6) %!d(string=hai) anos
pai
achega
88c3516f09
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {