Skip to content

Commit

Permalink
Fix unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Apr 26, 2024
1 parent 352af11 commit dd632a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions lib/src/ContinuousTTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ double ContinuousTTest::getTTest(const OT::UnsignedInteger Y,

OT::UnsignedInteger k = 0; // Bandwidth parameter

const auto dY = data_.getMarginal(Y);
const auto dZ = data_.getMarginal(Z);
const auto dX = data_.getMarginal(X);

OT::Point logFX, logFYX, logFZX, logFYZX;
std::tie(logFX, logFYX, logFZX, logFYZX, k) = getLogPDFs(Y, Z, X);

Expand Down Expand Up @@ -302,10 +298,6 @@ double ContinuousTTest::getTTestWithoutCorrections(OT::UnsignedInteger Y,
{
OT::UnsignedInteger k = 0;

const auto dY = data_.getMarginal(Y);
const auto dZ = data_.getMarginal(Z);
const auto dX = data_.getMarginal(X);

OT::Point logFX, logFYX, logFZX, logFYZX;
std::tie(logFX, logFYX, logFZX, logFYZX, k) = getLogPDFs(Y, Z, X);

Expand Down
4 changes: 0 additions & 4 deletions lib/test/t_JunctionTreeBernsteinCopula_std.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,12 @@ void testOK()
{
OT::RandomGenerator::SetSeed(33);
OTAGRUM::JunctionTreeBernsteinCopula copula(jt, copulaSample, 5, false);
OT::Sample sample = copula.getSample(1000);
OT::Sample pdf = copula.computePDF(sample);
entropyMC1 = -copula.computeLogPDF(copula.getSample(1000)).computeMean()[0];
}
{
OT::RandomGenerator::SetSeed(33);
OTAGRUM::JunctionTreeBernsteinCopula copula(jt, jt.getOrderMaxFirst(),
copulaSample, 5, false);
OT::Sample sample = copula.getSample(1000);
OT::Sample pdf = copula.computePDF(sample);
entropyMC2 = -copula.computeLogPDF(copula.getSample(1000)).computeMean()[0];
}
std::cout << "Same entropy : ";
Expand Down

0 comments on commit dd632a3

Please sign in to comment.