CPD Results
The following document contains the results of PMD's CPD 7.3.0.
Duplications
File |
Line |
org/apache/commons/statistics/examples/distribution/BetaCommand.java |
87 |
org/apache/commons/statistics/examples/distribution/WeibullCommand.java |
88 |
final ContinuousDistribution d = BetaDistribution.of(alpha[i], beta[i]);
list.add(new Distribution<>(d, "alpha=" + alpha[i] + ",beta=" + beta[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Beta distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/FoldedNormalCommand.java |
90 |
org/apache/commons/statistics/examples/distribution/LogNormalCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/NormalCommand.java |
89 |
final ContinuousDistribution d = FoldedNormalDistribution.of(mean[i], sigma[i]);
list.add(new Distribution<>(d, "mu=" + mean[i] + ",sigma=" + sigma[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Folded normal distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/GumbelCommand.java |
87 |
org/apache/commons/statistics/examples/distribution/LaplaceCommand.java |
87 |
final ContinuousDistribution d = GumbelDistribution.of(location[i], scale[i]);
list.add(new Distribution<>(d, "mu=" + location[i] + ",beta=" + scale[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Gumbel distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/LogUniformCommand.java |
90 |
org/apache/commons/statistics/examples/distribution/UniformContinuousCommand.java |
90 |
final ContinuousDistribution d = LogUniformDistribution.of(lower[i], upper[i]);
list.add(new Distribution<>(d, "a=" + lower[i] + ",b=" + upper[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Log uniform distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/ChiSquaredCommand.java |
74 |
org/apache/commons/statistics/examples/distribution/TCommand.java |
73 |
final ContinuousDistribution d = ChiSquaredDistribution.of(degreesOfFreedom);
list.add(new Distribution<>(d, "df=" + degreesOfFreedom));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Chi-squared distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/FoldedNormalCommand.java |
66 |
org/apache/commons/statistics/examples/distribution/NormalCommand.java |
65 |
private double[] sigma = {1, 2, 1, 1};
}
/** Extend the options to set the default values for this distribution. */
static final class Options extends ContinuousDistributionOptions {
/** Set defaults. */
private Options() {
min = -5;
max = 5;
}
}
@Override
protected List<Distribution<ContinuousDistribution>> getDistributions() {
double[] mean = params.mu;
double[] sigma = params.sigma;
final int n = DistributionUtils.validateLengths(mean.length, sigma.length);
mean = DistributionUtils.expandToLength(mean, n);
sigma = DistributionUtils.expandToLength(sigma, n);
// Create distributions
final ArrayList<Distribution<ContinuousDistribution>> list = new ArrayList<>();
for (int i = 0; i < n; i++) {
final ContinuousDistribution d = FoldedNormalDistribution.of(mean[i], sigma[i]); |
File |
Line |
org/apache/commons/statistics/examples/distribution/LogUniformCommand.java |
66 |
org/apache/commons/statistics/examples/distribution/UniformContinuousCommand.java |
66 |
private double[] upper = {4, 6};
}
/** Extend the options to set the default values for this distribution. */
static final class Options extends ContinuousDistributionOptions {
/** Set defaults. */
private Options() {
min = -5;
max = 5;
}
}
@Override
protected List<Distribution<ContinuousDistribution>> getDistributions() {
double[] lower = params.lower;
double[] upper = params.upper;
final int n = DistributionUtils.validateLengths(lower.length, upper.length);
lower = DistributionUtils.expandToLength(lower, n);
upper = DistributionUtils.expandToLength(upper, n);
// Create distributions
final ArrayList<Distribution<ContinuousDistribution>> list = new ArrayList<>();
for (int i = 0; i < n; i++) {
final ContinuousDistribution d = LogUniformDistribution.of(lower[i], upper[i]); |
File |
Line |
org/apache/commons/statistics/examples/distribution/BinomialCommand.java |
89 |
org/apache/commons/statistics/examples/distribution/PascalCommand.java |
92 |
list.add(new Distribution<>(d, "trials=" + trials[i] + ",p=" + p[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseDiscreteDistributionOptions distributionOptions = new InverseDiscreteDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Binomial distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/CauchyCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/GammaCommand.java |
89 |
list.add(new Distribution<>(d, "location=" + location[i] + ",scale=" + scale[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Cauchy distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/CauchyCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/GumbelCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/LaplaceCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/LevyCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/LogisticCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/NakagamiCommand.java |
88 |
list.add(new Distribution<>(d, "location=" + location[i] + ",scale=" + scale[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Cauchy distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/GammaCommand.java |
89 |
org/apache/commons/statistics/examples/distribution/GumbelCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/LaplaceCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/LevyCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/LogisticCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/NakagamiCommand.java |
88 |
list.add(new Distribution<>(d, "shape=" + shape[i] + ",scale=" + scale[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Gamma distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/LogUniformCommand.java |
90 |
org/apache/commons/statistics/examples/distribution/UniformDiscreteCommand.java |
89 |
final ContinuousDistribution d = LogUniformDistribution.of(lower[i], upper[i]);
list.add(new Distribution<>(d, "a=" + lower[i] + ",b=" + upper[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions(); |
File |
Line |
org/apache/commons/statistics/examples/distribution/LogUniformCommand.java |
91 |
org/apache/commons/statistics/examples/distribution/TruncatedNormalCommand.java |
113 |
org/apache/commons/statistics/examples/distribution/UniformContinuousCommand.java |
91 |
list.add(new Distribution<>(d, "a=" + lower[i] + ",b=" + upper[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Log uniform distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/BetaCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/CauchyCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/FCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/FoldedNormalCommand.java |
91 |
org/apache/commons/statistics/examples/distribution/GammaCommand.java |
89 |
org/apache/commons/statistics/examples/distribution/GumbelCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/LaplaceCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/LevyCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/LogNormalCommand.java |
89 |
org/apache/commons/statistics/examples/distribution/LogUniformCommand.java |
91 |
org/apache/commons/statistics/examples/distribution/LogisticCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/NakagamiCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/NormalCommand.java |
90 |
org/apache/commons/statistics/examples/distribution/ParetoCommand.java |
89 |
org/apache/commons/statistics/examples/distribution/TrapezoidalCommand.java |
111 |
org/apache/commons/statistics/examples/distribution/TriangularCommand.java |
101 |
org/apache/commons/statistics/examples/distribution/TruncatedNormalCommand.java |
113 |
org/apache/commons/statistics/examples/distribution/UniformContinuousCommand.java |
91 |
org/apache/commons/statistics/examples/distribution/WeibullCommand.java |
89 |
list.add(new Distribution<>(d, "alpha=" + alpha[i] + ",beta=" + beta[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Beta distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/BinomialCommand.java |
89 |
org/apache/commons/statistics/examples/distribution/HypergeometricCommand.java |
100 |
org/apache/commons/statistics/examples/distribution/PascalCommand.java |
92 |
org/apache/commons/statistics/examples/distribution/UniformDiscreteCommand.java |
90 |
org/apache/commons/statistics/examples/distribution/ZipfCommand.java |
88 |
list.add(new Distribution<>(d, "trials=" + trials[i] + ",p=" + p[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseDiscreteDistributionOptions distributionOptions = new InverseDiscreteDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Binomial distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/BetaCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/ChiSquaredCommand.java |
75 |
org/apache/commons/statistics/examples/distribution/ExpCommand.java |
74 |
org/apache/commons/statistics/examples/distribution/FCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/FoldedNormalCommand.java |
91 |
org/apache/commons/statistics/examples/distribution/GammaCommand.java |
89 |
org/apache/commons/statistics/examples/distribution/GumbelCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/LaplaceCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/LevyCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/LogNormalCommand.java |
89 |
org/apache/commons/statistics/examples/distribution/LogUniformCommand.java |
91 |
org/apache/commons/statistics/examples/distribution/LogisticCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/NakagamiCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/NormalCommand.java |
90 |
org/apache/commons/statistics/examples/distribution/ParetoCommand.java |
89 |
org/apache/commons/statistics/examples/distribution/TCommand.java |
74 |
org/apache/commons/statistics/examples/distribution/TrapezoidalCommand.java |
111 |
org/apache/commons/statistics/examples/distribution/TriangularCommand.java |
101 |
org/apache/commons/statistics/examples/distribution/TruncatedNormalCommand.java |
113 |
org/apache/commons/statistics/examples/distribution/UniformContinuousCommand.java |
91 |
org/apache/commons/statistics/examples/distribution/WeibullCommand.java |
89 |
list.add(new Distribution<>(d, "alpha=" + alpha[i] + ",beta=" + beta[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Beta distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/BinomialCommand.java |
89 |
org/apache/commons/statistics/examples/distribution/GeometricCommand.java |
75 |
org/apache/commons/statistics/examples/distribution/HypergeometricCommand.java |
100 |
org/apache/commons/statistics/examples/distribution/PascalCommand.java |
92 |
org/apache/commons/statistics/examples/distribution/PoissonCommand.java |
75 |
org/apache/commons/statistics/examples/distribution/UniformDiscreteCommand.java |
90 |
org/apache/commons/statistics/examples/distribution/ZipfCommand.java |
88 |
list.add(new Distribution<>(d, "trials=" + trials[i] + ",p=" + p[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseDiscreteDistributionOptions distributionOptions = new InverseDiscreteDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Binomial distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/CauchyCommand.java |
88 |
org/apache/commons/statistics/examples/distribution/ChiSquaredCommand.java |
75 |
org/apache/commons/statistics/examples/distribution/ExpCommand.java |
74 |
org/apache/commons/statistics/examples/distribution/TCommand.java |
74 |
list.add(new Distribution<>(d, "location=" + location[i] + ",scale=" + scale[i]));
}
return list;
}
}
/** Base command for the distribution that defines the parameters. */
private abstract static class ProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private Options distributionOptions = new Options();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Base command for the distribution that defines the parameters for inverse probability functions. */
private abstract static class InverseProbabilityCommand extends BaseCommand {
/** The distribution options. */
@ArgGroup(validate = false, heading = "Evaluation options:%n", order = 2)
private InverseContinuousDistributionOptions distributionOptions = new InverseContinuousDistributionOptions();
@Override
protected DistributionOptions getDistributionOptions() {
return distributionOptions;
}
}
/** Verification checks command. */
@Command(name = "check",
hidden = true,
description = "Cauchy distribution verification checks.") |
File |
Line |
org/apache/commons/statistics/examples/distribution/BetaCommand.java |
72 |
org/apache/commons/statistics/examples/distribution/WeibullCommand.java |
73 |
}
}
@Override
protected List<Distribution<ContinuousDistribution>> getDistributions() {
double[] alpha = params.alpha;
double[] beta = params.beta;
final int n = DistributionUtils.validateLengths(alpha.length, beta.length);
alpha = DistributionUtils.expandToLength(alpha, n);
beta = DistributionUtils.expandToLength(beta, n);
// Create distributions
final ArrayList<Distribution<ContinuousDistribution>> list = new ArrayList<>();
for (int i = 0; i < n; i++) {
final ContinuousDistribution d = BetaDistribution.of(alpha[i], beta[i]); |
File |
Line |
org/apache/commons/statistics/examples/distribution/FoldedNormalCommand.java |
75 |
org/apache/commons/statistics/examples/distribution/LogNormalCommand.java |
73 |
org/apache/commons/statistics/examples/distribution/NormalCommand.java |
74 |
}
}
@Override
protected List<Distribution<ContinuousDistribution>> getDistributions() {
double[] mean = params.mu;
double[] sigma = params.sigma;
final int n = DistributionUtils.validateLengths(mean.length, sigma.length);
mean = DistributionUtils.expandToLength(mean, n);
sigma = DistributionUtils.expandToLength(sigma, n);
// Create distributions
final ArrayList<Distribution<ContinuousDistribution>> list = new ArrayList<>();
for (int i = 0; i < n; i++) {
final ContinuousDistribution d = FoldedNormalDistribution.of(mean[i], sigma[i]); |
File |
Line |
org/apache/commons/statistics/examples/distribution/GumbelCommand.java |
72 |
org/apache/commons/statistics/examples/distribution/LaplaceCommand.java |
72 |
}
}
@Override
protected List<Distribution<ContinuousDistribution>> getDistributions() {
double[] location = params.mu;
double[] scale = params.beta;
final int n = DistributionUtils.validateLengths(location.length, scale.length);
location = DistributionUtils.expandToLength(location, n);
scale = DistributionUtils.expandToLength(scale, n);
// Create distributions
final ArrayList<Distribution<ContinuousDistribution>> list = new ArrayList<>();
for (int i = 0; i < n; i++) {
final ContinuousDistribution d = GumbelDistribution.of(location[i], scale[i]); |
|