转换评分量表
Convert a rating scale
我有一个网站,人们可以在其中评估某些主题。这是规模[1-4]。
但是我可能在整体评分的可读性方面存在问题。最常见的比例是 web 中的 [1-5]。
目前我正在使用例如1.5 / 4
。
Google 说:
不使用 5 分制的评分:默认情况下,Google 假设您的网站使用 5 分制,其中 5 是最佳评分,1是最差的,但您可以使用任何其他比例。如果这样做,您可以标记最佳和最差评分,Google 会将其缩放到丰富网页摘要中使用的 5 星系统。
如何进行这种从 4 到 5 的转换?
如果你想在你这边做缩放,明显的线性变换是
oneToFive = (oneToFour - 1.0) * (4.0/3.0) + 1.0
完整性检查:
(1 - 1.0) * (4.0/3.0) + 1.0 == 1.0
(4 - 1.0) * (4.0/3.0) + 1.0 == 5.0
如果您想让 Google 执行此操作,请继续阅读 the instructions page。您只需要设置几个值:
reviewRating.bestRating
Text*
The highest value allowed in this rating system.
* Required if the rating system is not on a 5-point scale. If bestRating > is omitted, 5 is assumed.
reviewRating.worstRating
Text*
The lowest value allowed in this rating system.
* Required if the rating system is not on a 5-point scale. If worstRating > is omitted, 1 is assumed.
我有一个网站,人们可以在其中评估某些主题。这是规模[1-4]。
但是我可能在整体评分的可读性方面存在问题。最常见的比例是 web 中的 [1-5]。
目前我正在使用例如1.5 / 4
。
Google 说:
不使用 5 分制的评分:默认情况下,Google 假设您的网站使用 5 分制,其中 5 是最佳评分,1是最差的,但您可以使用任何其他比例。如果这样做,您可以标记最佳和最差评分,Google 会将其缩放到丰富网页摘要中使用的 5 星系统。
如何进行这种从 4 到 5 的转换?
如果你想在你这边做缩放,明显的线性变换是
oneToFive = (oneToFour - 1.0) * (4.0/3.0) + 1.0
完整性检查:
(1 - 1.0) * (4.0/3.0) + 1.0 == 1.0
(4 - 1.0) * (4.0/3.0) + 1.0 == 5.0
如果您想让 Google 执行此操作,请继续阅读 the instructions page。您只需要设置几个值:
reviewRating.bestRating
Text*
The highest value allowed in this rating system.
* Required if the rating system is not on a 5-point scale. If bestRating > is omitted, 5 is assumed.
reviewRating.worstRating
Text*
The lowest value allowed in this rating system.
* Required if the rating system is not on a 5-point scale. If worstRating > is omitted, 1 is assumed.