Skip to content

Commit

Permalink
Merge pull request #40 from janmtl/master
Browse files Browse the repository at this point in the history
Fixed spelling of 'Kolmorov' to 'Kolmogorov'.
  • Loading branch information
simonster committed Sep 25, 2015
2 parents be6d10e + c04280b commit 679e8ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/kolmogorov_smirnov.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

export
export
ExactOneSampleKSTest,
ApproximateOneSampleKSTest, ApproximateTwoSampleKSTest

Expand Down Expand Up @@ -61,7 +61,7 @@ function ExactOneSampleKSTest{T<:Real}(x::AbstractVector{T}, d::UnivariateDistri
ExactOneSampleKSTest(ksstats(x, d)...)
end

testname(::ExactOneSampleKSTest) = "Exact one sample Kolmorov-Smirnov test"
testname(::ExactOneSampleKSTest) = "Exact one sample Kolmogorov-Smirnov test"

function show_params(io::IO, x::ExactOneSampleKSTest, ident="")
println(io, ident, "number of observations: $(x.n)")
Expand All @@ -88,15 +88,15 @@ immutable ApproximateOneSampleKSTest <: ApproximateKSTest
δn::Float64 # suproemum of the negative CDF differences
end

function ApproximateOneSampleKSTest{T<:Real}(x::AbstractVector{T}, d::UnivariateDistribution)
function ApproximateOneSampleKSTest{T<:Real}(x::AbstractVector{T}, d::UnivariateDistribution)
if length(x) > length(unique(x))
warn("This test is inaccurate with ties")
end

ApproximateOneSampleKSTest(ksstats(x, d)...)
end

testname(::ApproximateOneSampleKSTest) = "Approximate one sample Kolmorov-Smirnov test"
testname(::ApproximateOneSampleKSTest) = "Approximate one sample Kolmogorov-Smirnov test"

function show_params(io::IO, x::ApproximateOneSampleKSTest, ident="")
println(io, ident, "number of observations: $(x.n)")
Expand Down Expand Up @@ -137,7 +137,7 @@ function ApproximateTwoSampleKSTest{T<:Real, S<:Real}(x::AbstractVector{T}, y::A
ApproximateTwoSampleKSTest(ksstats(x, y)...)
end

testname(::ApproximateTwoSampleKSTest) = "Approximate two sample Kolmorov-Smirnov test"
testname(::ApproximateTwoSampleKSTest) = "Approximate two sample Kolmogorov-Smirnov test"

function show_params(io::IO, x::ApproximateTwoSampleKSTest, ident="")
n = x.n_x*x.n_y/(x.n_x+x.n_y)
Expand Down

0 comments on commit 679e8ff

Please sign in to comment.