Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joelberkeley committed Jul 12, 2022
1 parent 2feedfd commit 8f5c0ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Unit/TestTensor.idr
Original file line number Diff line number Diff line change
Expand Up @@ -1117,8 +1117,8 @@ iidKolmogorovSmirnov samples cdf =

indices : Tensor [n] F64 := cast (fromLiteral {dtype=U64} (range n))
sampleSize : Tensor [] F64 := cast (fromLiteral {dtype=U64} (Scalar n))
samplesFlat := reshape {sizesEqual=sym (product1 n)} {to=[n]} (cdf samples)
deviationFromCDF : Tensor [n] F64 := indices / sampleSize - (sort (<) 0 samplesFlat)
cdfs := reshape {sizesEqual=sym (product1 n)} {to=[n]} (cdf samples)
deviationFromCDF : Tensor [n] F64 := indices / sampleSize - (sort (<) 0 cdfs)
in reduce @{Max} [0] (abs deviationFromCDF)

namespace F64
Expand Down

0 comments on commit 8f5c0ff

Please sign in to comment.