Explorar el Código

fixed VolumeIsoValue.calcRelative

Alexander Rose hace 6 años
padre
commit
88c3516f09
Se han modificado 1 ficheros con 1 adiciones y 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 {