Skip to content

Commit 06f2132

Browse files
committed
VineCopulaFactory: Rotation flag
1 parent adc3056 commit 06f2132

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

lib/src/VineCopulaFactory.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Distribution VineCopulaFactory::build(const Sample & sample) const
7676
};
7777
}
7878
vinecopulib::FitControlsVinecop controls(family_set);
79+
controls.set_allow_rotations(allowRotations_);
7980
p_vinecop->select(data, controls);
8081

8182
if (native_)
@@ -151,4 +152,9 @@ void VineCopulaFactory::setNative(const Bool native)
151152
native_ = native;
152153
}
153154

155+
void VineCopulaFactory::setAllowRotations(const OT::Bool allowRotations)
156+
{
157+
allowRotations_ = allowRotations;
158+
}
159+
154160
} /* namespace OTVINE */

lib/src/otvine/VineCopulaFactory.hxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ public:
5959
void load(OT::Advocate & adv) override;
6060

6161
void setNative(const OT::Bool native);
62+
void setAllowRotations(const OT::Bool allowRotations);
6263
private:
6364

6465
OT::Bool native_ = false;
66+
OT::Bool allowRotations_ = true;
6567
}; /* class VineCopulaFactory */
6668

6769
} /* namespace OTVINE */

python/src/VineCopulaFactory_doc.i

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,14 @@ https://www.math.cit.tum.de/math/forschung/gruppen/statistics/vine-copula-models
2222
Parameters
2323
----------
2424
native : bool
25-
Whether to use only known parametric copulas."
25+
Whether to use only known parametric copulas."
26+
27+
// ---------------------------------------------------------------------
28+
29+
%feature("docstring") OTVINE::VineCopulaFactory::setAllowRotations
30+
"Allowed rotations flag accessor.
31+
32+
Parameters
33+
----------
34+
allowRotations : bool
35+
Whether to allow rotations."

0 commit comments

Comments
 (0)