{
  "_id": "6ad9c970db07788da70aa2fc",
  "Package": "KSgeneral",
  "Type": "Package",
  "Version": "2.1.0",
  "Title": "Computing P-Values of the One-Sample K-S Test and the Two-Sample\nK-S and Kuiper Tests for (Dis)Continuous Null Distribution",
  "Authors@R": "c(\nperson(given = c(\"Dimitrina\", \"S.\"),\nfamily = \"Dimitrova\",\nrole = c(\"aut\", \"cre\"),\nemail = \"D.Dimitrova@city.ac.uk\"),\nperson(given = \"Yun\",\nfamily = \"Jia\",\nrole = \"aut\",\nemail = \"yunjia2019@gmail.com\"),\nperson(given = c(\"Vladimir\", \"K.\"),\nfamily = \"Kaishev\",\nrole = \"aut\",\nemail = \"Vladimir.Kaishev.1@city.ac.uk\"),\nperson(given = \"Senren\",\nfamily = \"Tan\",\nrole = \"aut\",\nemail = \"raymondtsrtsr@outlook.com\")\n)",
  "SystemRequirements": "fftw3 (>=3.3.4)",
  "Copyright": "Copyright holders of FFTW3: Copyright (c) 2003, 2007-11\nMatteo Frigo; Copyright (c) 2003, 2007-11 Massachusetts\nInstitute of Technology",
  "Description": "Contains functions to compute p-values for the one-sample\nand two-sample Kolmogorov-Smirnov (KS) tests and the two-sample\nKuiper test for any fixed critical level and arbitrary\n(possibly very large) sample sizes. For the one-sample KS test,\nthis package implements a novel, accurate and efficient method\nnamed Exact-KS-FFT, which allows the pre-specified cumulative\ndistribution function under the null hypothesis to be\ncontinuous, purely discrete or mixed. In the two-sample case,\nit is assumed that both samples come from an unspecified\n(unknown) continuous, purely discrete or mixed distribution,\ni.e. ties (repeated observations) are allowed, and exact\np-values of the KS and the Kuiper tests are computed. Note, the\ntwo-sample Kuiper test is often used when data samples are on\nthe line or on the circle (circular data). To cite this package\nin publication: (for the use of the one-sample KS test)\nDimitrina S. Dimitrova, Vladimir K. Kaishev, and Senren Tan.\nComputing the Kolmogorov-Smirnov Distribution When the\nUnderlying CDF is Purely Discrete, Mixed, or Continuous.\nJournal of Statistical Software. 2020; 95(10): 1--42.\n<doi:10.18637/jss.v095.i10>. (for the use of the two-sample KS\nand Kuiper tests) Dimitrina S. Dimitrova, Yun Jia and Vladimir\nK. Kaishev (2024). The R functions KS2sample and Kuiper2sample:\nEfficient Exact Calculation of P-values of the Two-sample\nKolmogorov-Smirnov and Kuiper Tests. submitted.",
  "License": "GPL (>= 2.0)",
  "URL": "https://github.com/d-dimitrova/KSgeneral",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-22 08:24:43 UTC",
    "User": "root"
  },
  "Author": "Dimitrina S. Dimitrova [aut, cre], Yun Jia [aut], Vladimir K.\nKaishev [aut], Senren Tan [aut]",
  "Maintainer": "Dimitrina S. Dimitrova <D.Dimitrova@city.ac.uk>",
  "Config/pak/sysreqs": "libfftw3-dev",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-08-23 03:50:08 UTC",
  "RemoteUrl": "https://github.com/cran/KSgeneral",
  "RemoteRef": "HEAD",
  "RemoteSha": "85bb0d2fd3b65f1361d93dc22f51e760a6c5bd68",
  "_user": "cran",
  "_type": "src",
  "_file": "KSgeneral_2.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/0383da5438e7b6787404e0a0b39c91e17b00a1fd7b093ae3c67ffb44fc460742",
  "_filesize": 453509,
  "_sha256": "0383da5438e7b6787404e0a0b39c91e17b00a1fd7b093ae3c67ffb44fc460742",
  "_expires": "2027-01-30T08:29:34.000Z",
  "_created": "2026-10-22T08:24:43.000Z",
  "_published": "2026-10-22T08:29:36.073Z",
  "_upstream": "https://github.com/cran/KSgeneral",
  "_status": "success",
  "_maintainer": {
    "name": "Dimitrina S. Dimitrova",
    "email": "d.dimitrova@city.ac.uk",
    "login": "d-dimitrova",
    "description": "",
    "uuid": 153292482
  },
  "_jobs": [
    {
      "job": 119719801796,
      "time": 102,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12411972737"
    },
    {
      "job": 119719801809,
      "time": 105,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12412107057"
    },
    {
      "job": 119719801981,
      "time": 103,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12411139532"
    },
    {
      "job": 119719801848,
      "time": 111,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12412605524"
    },
    {
      "job": 119718298866,
      "time": 215,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12412490418"
    },
    {
      "job": 119719801645,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12412356335"
    },
    {
      "job": 119719801951,
      "time": 244,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12412581009"
    },
    {
      "job": 119719801785,
      "time": 144,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12411877618"
    },
    {
      "job": 119719801773,
      "time": 242,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12411917626"
    },
    {
      "job": 119719801853,
      "time": 107,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12412066564"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/39747090042",
  "_commit": {
    "id": "85bb0d2fd3b65f1361d93dc22f51e760a6c5bd68",
    "author": "Dimitrina S. Dimitrova <D.Dimitrova@city.ac.uk>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 2.1.0\n",
    "time": 1787457008
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.3.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.12",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "dgof",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2026-34",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "2.1.0",
      "date": "2026-08-23"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "d-dimitrova",
      "count": 5,
      "uuid": 153292482
    },
    {
      "user": "raymondtsr",
      "count": 4,
      "uuid": 32581436
    },
    {
      "user": "raymondtsrtsr",
      "count": 3,
      "uuid": 43141317
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 505,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/KSgeneral"
  },
  "_devurl": "https://github.com/d-dimitrova/ksgeneral",
  "_searchresults": 22,
  "_topics": [
    "fftw3",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/KSgeneral.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/d-dimitrova/ksgeneral",
  "_realowner": "d-dimitrova",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2018-01-08"
    },
    {
      "version": "0.1.1",
      "date": "2018-05-14"
    },
    {
      "version": "0.1.2",
      "date": "2020-02-11"
    },
    {
      "version": "1.0.0",
      "date": "2020-10-02"
    },
    {
      "version": "1.1.0",
      "date": "2021-12-05"
    },
    {
      "version": "1.1.1",
      "date": "2022-03-20"
    },
    {
      "version": "1.1.2",
      "date": "2023-07-10"
    },
    {
      "version": "1.1.3",
      "date": "2024-03-15"
    },
    {
      "version": "2.0.0",
      "date": "2024-05-21"
    },
    {
      "version": "2.0.1",
      "date": "2024-07-25"
    },
    {
      "version": "2.0.2",
      "date": "2024-07-29"
    },
    {
      "version": "2.1.0",
      "date": "2026-08-23"
    }
  ],
  "_exports": [
    "cont_ks_c_cdf",
    "cont_ks_cdf",
    "cont_ks_test",
    "disc_ks_c_cdf",
    "disc_ks_test",
    "ks_c_cdf",
    "ks_c_cdf_Rcpp",
    "KS2sample",
    "KS2sample_c_Rcpp",
    "KS2sample_Rcpp",
    "Kuiper2sample",
    "Kuiper2sample_c_Rcpp",
    "Kuiper2sample_Rcpp",
    "mixed_ks_c_cdf",
    "mixed_ks_test"
  ],
  "_datasets": [
    {
      "name": "Population_Data",
      "title": "The proportion of inhabitants living within a 200 kilometer wide costal strip in 232 countries in the year 2010",
      "object": "Population_Data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Proportion"
      ],
      "rows": 232,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ksgeneral-package",
      "title": "Computing P-Values of the One-Sample K-S Test and the Two-Sample K-S and Kuiper Tests for (Dis)Continuous Null Distribution",
      "topics": [
        "KSgeneral-package"
      ]
    },
    {
      "page": "cont_ks_c_cdf",
      "title": "Computes the complementary cumulative distribution function of the two-sided Kolmogorov-Smirnov statistic when the cdf under the null hypothesis is continuous",
      "topics": [
        "cont_ks_c_cdf"
      ]
    },
    {
      "page": "cont_ks_distribution",
      "title": "Computes the cumulative distribution function of the two-sided Kolmogorov-Smirnov statistic when the cdf under the null hypothesis is continuous",
      "topics": [
        "cont_ks_cdf"
      ]
    },
    {
      "page": "cont_ks_test",
      "title": "Computes the p-value for a one-sample two-sided Kolmogorov-Smirnov test when the cdf under the null hypothesis is continuous",
      "topics": [
        "cont_ks_test"
      ]
    },
    {
      "page": "disc_ks_c_cdf",
      "title": "Computes the complementary cumulative distribution function of the two-sided Komogorov-Smirnov statistic when the cdf under the null hypothesis is purely discrete",
      "topics": [
        "disc_ks_c_cdf"
      ]
    },
    {
      "page": "disc_ks_test",
      "title": "Computes the p-value for a one-sample two-sided Kolmogorov-Smirnov test when the cdf under the null hypothesis is purely discrete",
      "topics": [
        "disc_ks_test"
      ]
    },
    {
      "page": "ks_c_cdf",
      "title": "Exact-KS-FFT Complementary CDF from Pre-computed Boundaries",
      "topics": [
        "ks_c_cdf"
      ]
    },
    {
      "page": "KS2sample",
      "title": "Computes the p-value for a (weighted) two-sample Kolmogorov-Smirnov test, given an arbitrary positive weight function and arbitrary data samples with possibly repeated observations (i.e. ties)",
      "topics": [
        "KS2sample"
      ]
    },
    {
      "page": "KS2sample_c_Rcpp",
      "title": "R function calling the C++ routines that compute the complementary p-value for a (weighted) two-sample Kolmogorov-Smirnov (KS) test, given an arbitrary positive weight function and arbitrary data samples with possibly repeated observations (i.e. ties)",
      "topics": [
        "KS2sample_c_Rcpp"
      ]
    },
    {
      "page": "KS2sample_Rcpp",
      "title": "R function calling the C++ routines that compute the p-value for a (weighted) two-sample Kolmogorov-Smirnov (KS) test, given an arbitrary positive weight function and arbitrary data samples with possibly repeated observations (i.e. ties)",
      "topics": [
        "KS2sample_Rcpp"
      ]
    },
    {
      "page": "KSgeneral-deprecated",
      "title": "Deprecated Functions in Package 'KSgeneral'",
      "topics": [
        "KSgeneral-deprecated",
        "ks_c_cdf_Rcpp"
      ]
    },
    {
      "page": "Kuiper2sample",
      "title": "Computes the p-value for a two-sample Kuiper test, given arbitrary data samples on the real line or on the circle with possibly repeated observations (i.e. ties)",
      "topics": [
        "Kuiper2sample"
      ]
    },
    {
      "page": "Kuiper2sample_c_Rcpp",
      "title": "R function calling the C++ routines that compute the complementary p-value for a (unweighted) two-sample Kuiper test, given arbitrary data samples on the real line or on the circle with possibly repeated observations (i.e. ties)",
      "topics": [
        "Kuiper2sample_c_Rcpp"
      ]
    },
    {
      "page": "Kuiper2sample_Rcpp",
      "title": "R function calling the C++ routines that compute the p-value for a (unweighted) two-sample Kuiper test, given arbitrary data samples on the real line or on the circle with possibly repeated observations (i.e. ties)",
      "topics": [
        "Kuiper2sample_Rcpp"
      ]
    },
    {
      "page": "mixed_ks_c_cdf",
      "title": "Computes the complementary cumulative distribution function of the two-sided Kolmogorov-Smirnov statistic when the cdf under the null hypothesis is mixed",
      "topics": [
        "mixed_ks_c_cdf"
      ]
    },
    {
      "page": "mixed_ks_test",
      "title": "Computes the p-value for a one-sample two-sided Kolmogorov-Smirnov test when the cdf under the null hypothesis is mixed",
      "topics": [
        "mixed_ks_test"
      ]
    },
    {
      "page": "Population_Data",
      "title": "The proportion of inhabitants living within a 200 kilometer wide costal strip in 232 countries in the year 2010",
      "topics": [
        "Population_Data"
      ]
    }
  ],
  "_readme": "https://github.com/cran/KSgeneral/raw/HEAD/README.md",
  "_rundeps": [
    "dgof",
    "MASS",
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "libfftw3",
      "package": "libfftw3-double3",
      "headers": "libfftw3-dev",
      "source": "fftw3",
      "version": "3.3.10-2fakesync1build3",
      "name": "fftw3",
      "homepage": "https://fftw.org",
      "description": "Library for computing Fast Fourier Transforms - Double precision"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 2.8195439355418688,
  "_indexed": false,
  "_nocasepkg": "ksgeneral",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://d-dimitrova.r-universe.dev/KSgeneral",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-10-22T08:26:35.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "85bb0d2fd3b65f1361d93dc22f51e760a6c5bd68",
      "fileid": "https://r2.ropensci.org/6826c66dee4b052c604bda4d088d87f63e37be7bea5bf6f4dc73d8f7d8b250ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39747090042"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-10-22T08:26:38.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "85bb0d2fd3b65f1361d93dc22f51e760a6c5bd68",
      "fileid": "https://r2.ropensci.org/ac42fd1aa7c9472194e7506cd8ecbe5847f1bd4365a09b47e95a46b8ad13fd8e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39747090042"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-10-22T08:26:40.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "85bb0d2fd3b65f1361d93dc22f51e760a6c5bd68",
      "fileid": "https://r2.ropensci.org/fa0db755d4efbcd5cd4e9586682152b68e28113d5797edab497499ff3eed1a32",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39747090042"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-10-22T08:26:39.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "85bb0d2fd3b65f1361d93dc22f51e760a6c5bd68",
      "fileid": "https://r2.ropensci.org/f0ee0dcfcc174c774db49a5b533ff2d4df6a0d95d748a39b69c1b83d02861542",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39747090042"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.0",
      "date": "2026-10-22T08:26:47.000Z",
      "arch": "emscripten",
      "commit": "85bb0d2fd3b65f1361d93dc22f51e760a6c5bd68",
      "fileid": "https://r2.ropensci.org/185bde58287d8042f8d053249a719376ace61a64641cd3550deafed7dbe89b2e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39747090042"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-10-22T08:28:30.000Z",
      "arch": "aarch64",
      "commit": "85bb0d2fd3b65f1361d93dc22f51e760a6c5bd68",
      "fileid": "https://r2.ropensci.org/4505b1bc5d1017ae71a73e48876dfb6f9a680027330510560d1edf7cea858686",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39747090042"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-10-22T08:26:05.000Z",
      "arch": "x86_64",
      "commit": "85bb0d2fd3b65f1361d93dc22f51e760a6c5bd68",
      "fileid": "https://r2.ropensci.org/e4a71eb44ecb9c71d0c9d247d30cd107410606dc14fa55ab6f58cf42cfbbc2b2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39747090042"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-10-22T08:28:28.000Z",
      "arch": "aarch64",
      "commit": "85bb0d2fd3b65f1361d93dc22f51e760a6c5bd68",
      "fileid": "https://r2.ropensci.org/24bd7e702f621cd5709fc0ac2e36e85ef86cc7a6c7f193266b23e5d60fd23ab4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39747090042"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-10-22T08:26:01.000Z",
      "arch": "x86_64",
      "commit": "85bb0d2fd3b65f1361d93dc22f51e760a6c5bd68",
      "fileid": "https://r2.ropensci.org/0ca3b6108f72529ffcc6a61ce6fa1088fbd6bbdce2fb7bf22a13763a67cd1955",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39747090042"
    }
  ]
}