# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Left side 5 wide, right side 10 wide.
parameters = -3.0, 2.0, 12.0
# Computed manually
mean = 3.6666666666666665
variance = 9.722222222222221
lower = -3
upper = 12

# Points
# below lower limit
# at lower limit
# on lower side
# at mode
# on upper side
# at upper limit
# above upper limit
cdf.points = \
  -3.0, \
  -2.0, -1.0, 0.0, 1.0,\
  2.0,\
  3.0, 4.0, 10.0, 11.0,\
  12.0

# Top at 2 / (b - a) = 2 / (12 - -3) = 2 / 15 = 7.5
# Area left  = 7.5 * 5  * 0.5 = 18.75 (1/3 of the total area)
# Area right = 7.5 * 10 * 0.5 = 37.5  (2/3 of the total area)
# Area total = 18.75 + 37.5 = 56.25
# Derivative left side = 7.5 / 5 = 1.5
# Derivative right side = -7.5 / 10 = -0.75

# CDF
# 0.0,
# 0.75 / area, 3 / area, 6.75 / area, 12 / area,
# third,
# (left + 7.125) / area, (left + 13.5) / area,
# (left + 36) / area, (left + 37.125) / area,
# 1.0,
cdf.values = \
  0.0,\
  0.013333333333333, 0.053333333333333, 0.12, 0.213333333333333,\
  0.333333333333333,\
  0.46, 0.573333333333333,\
  0.973333333333333, 0.993333333333333,\
  1.0,

# Density
# 0,
# 2 / 75.0, 4 / 75.0, 6 / 75.0, 8 / 75.0,
# 10 / 75.0,
# 9 / 75.0, 8 / 75.0, 2 / 75.0, 1 / 75.0,
# 0,
pdf.values = \
  0,\
  0.02666666666666667, 0.05333333333333334, 0.08, 0.10666666666666667,\
  0.13333333333333333,\
  0.12, 0.10666666666666667, 0.02666666666666667, 0.013333333333333334,\
  0,

# Overridden tolerances
cdf.relative = 4e-14
sf.relative = 6e-14
