Hypothesis testing with custom densities

statistics

#1

The HypothesisTests module includes a number of statistical tests for comparing against known distributions. Supposing that I have the density for a univariate variable defined as some function, f(x), is there a way to turn this into a UnivariateDistribution that could be passed to, for instance, HypothesisTests.ExactOneSampleKSTest along with empirical data?