Yuka js 库中的 SingletonFuzzySet 组件,表示一个单独的模糊集合,它有一个 midpoint 属性,用于获取该集合的中心点。
const midpoint = singletonFuzzySet.midpoint;
singletonFuzzySet: SingletonFuzzySet 类型的对象,表示一个单独的模糊集合。midpoint: 类型为 Number,表示该集合的中心点。const singletonFuzzySet = new YUKA.SingletonFuzzySet(10);
const midpoint = singletonFuzzySet.midpoint; // 10
midpoint 属性是只读属性,不能被修改。