You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

47 lines
1.1 KiB

<?php
declare(strict_types=1);
/**
* DimensionSumStrategy.php
* Created by PhpStorm.
* Date: 2026/10/17
* Time: 09:40
* Author: qian.guo
* E-mail: yiyezhiqiutel@gmail.com
*/
namespace app\service\score\strategy;
use app\service\score\AbstractScoreStrategy;
/**
* 维度累加制(默认策略)
* 设计说明:
* - 维度内原始分累加 → 除以该维度满分归一化 → 对偶轴比大小取主导极
* - 选它做默认的理由:可解释性最强。用户问「为什么我是 I」时
* 能直接答「你在 15 道精力取向题里有 11 道选了内向侧」
* 而原型距离只能答「你离某个原型最近」,测评产品最怕答不上来
* - 全部逻辑在 AbstractScoreStrategy,本类只做注册标识
*/
class DimensionSumStrategy extends AbstractScoreStrategy
{
/**
* 获取策略标识
* getName
* @return string
*/
public function getName()
{
return 'dimension_sum';
}
/**
* 获取策略版本
* getVersion
* @return string
*/
public function getVersion()
{
return '1.0.0';
}
}