2022-04-25 15:44:50 +00:00
|
|
|
open Jest
|
|
|
|
open TestHelpers
|
|
|
|
|
2022-04-25 18:52:52 +00:00
|
|
|
describe("Combining Continuous and Discrete Distributions", () => {
|
2022-04-25 15:44:50 +00:00
|
|
|
makeTest(
|
2022-04-25 18:52:52 +00:00
|
|
|
"keep order of xs when multiplying by negative number",
|
2022-04-25 18:50:45 +00:00
|
|
|
AlgebraicShapeCombination.isOrdered(
|
2022-04-25 15:44:50 +00:00
|
|
|
AlgebraicShapeCombination.combineShapesContinuousDiscrete(
|
|
|
|
#Multiply,
|
|
|
|
{xs: [0., 1.], ys: [1., 1.]},
|
|
|
|
{xs: [-1.], ys: [1.]},
|
2022-04-25 19:18:18 +00:00
|
|
|
false
|
2022-04-25 15:44:50 +00:00
|
|
|
),
|
|
|
|
), // Multiply distribution by -1
|
|
|
|
true,
|
|
|
|
)
|
|
|
|
})
|