|
@@ -106,7 +106,7 @@ public class ArticlePromotionService {
|
|
|
* @param confidence: 置信度
|
|
|
* @return boolean: true / false
|
|
|
*/
|
|
|
- public static boolean isExperimentGroupSuperior(double readAvg, int fansA, double viewCount, int fansB, double confidence) {
|
|
|
+ public static boolean isExperimentGroupStatisticallySuperior(double readAvg, int fansA, double viewCount, int fansB, double confidence) {
|
|
|
|
|
|
if (fansA <= 0 || fansB <= 0) {
|
|
|
throw new IllegalArgumentException("样本量必须大于零");
|
|
@@ -149,7 +149,7 @@ public class ArticlePromotionService {
|
|
|
List<DatastatSortStrategy> listStrategy2 = list.stream()
|
|
|
.filter(o -> {
|
|
|
try {
|
|
|
- return isExperimentGroupSuperior(o.getAvgViewCount() * 1.1 * 30, o.getFans() * 30,
|
|
|
+ return isExperimentGroupStatisticallySuperior(o.getAvgViewCount() * 1.1 * 30, o.getFans() * 30,
|
|
|
o.getViewCount(), o.getFans(), 0.95);
|
|
|
}
|
|
|
catch (Exception e) {
|