Calculation of the Ordinate For an Arbitrary Point on the Preston Curve in the Plane
Calculation of the Ordinate For an Arbitrary Point on the Preston Curve in the Plane
EPE is used to calculate the y-value for an arbitrary point on the Preston curve that was generated by the explicit Preston equation or one of its simplified versions for a given x-value.
UTF-8
EPE(P, x, simpver =NULL)
Arguments
P: the parameters of the explicit Preston equation or one of its simplified versions.
x: the x-value used in the explicit Preston equation.
simpver: an optional argument to use the simplified version of the explicit Preston equation.
Details
When simpver = NULL, the explicit Preston equation is selected:
y=b1−(ax)2(1+c1ax+c2(ax)2+c3(ax)3),
where P has five parameters: a, b, c1, c2, and c3.
When simpver = 1, the simplified version 1 is selected:
y=b1−(ax)2(1+c1ax+c2(ax)2),
where P has four parameters: a, b, c1, and c2.
When simpver = 2, the simplified version 2 is selected:
y=b1−(ax)2(1+c1ax),
where P has three parameters: a, b, and c1.
When simpver = 3, the simplified version 3 is selected:
y=b1−(ax)2(1+c2(ax)2),
where P has three parameters: a, b, and c2.
Returns
The y values predicted by the explicit Preston equation.
Note
We only considered the upper part of the egg-shape curve in the above expressions because the lower part is symmetrical to the upper part around the x-axis. The mid-line of an egg's profile in EPE is aligned to the x-axis, while the mid-line of an egg's profile in PE
is aligned to the y-axis. The EPE function has the same parameters, P, as those in the PE function. The explicit Preston equation is used for calculating an egg's volume and surface area, when the parameters, which are saved in the P vector, are obtained using the fitEPE function or the lmPE function based on the TSE function. In addition, the values in x > a (i.e., the first element in P) are forced to be a, and the values in x < −a will be forced to be −a.
Shi, P., Chen, L., Quinn, B.K., Yu, K., Miao, Q., Guo, X., Lian, M., Gielis, J., Niklas, K.J. (2023) A simple way to calculate the volume and surface area of avian eggs. Annals of the New York Academy of Sciences 1524, 118−131. tools:::Rd_expr_doi("10.1111/nyas.15000")
Shi, P., Wang, L., Quinn, B.K., Gielis, J. (2023) A new program to estimate the parameters of Preston's equation, a general formula for describing the egg shape of birds. Symmetry