AttachmentPoint: Numeric. Attachment point of the reinsurance layer.
t: Numeric vector. Thresholds of the piecewise Pareto distribution.
alpha: Numeric vector. alpha[i] is the Pareto alpha in excess of t[i].
truncation: Numeric. If truncation is not NULL and truncation > t, then the Pareto distribution is truncated at truncation.
truncation_type: Character. If truncation_type = "wd" then the whole distribution is truncated. If truncation_type = "lp" then a truncated Pareto is used for the last piece.
Returns
The expected loss of the (truncated) piecewise Pareto distribution with parameter vectors t and alpha in the layer Cover xs AttachmentPoint