AABB
AlignmentBehavior
ArriveBehavior
AStar
BFS
BoundingSphere
BVH
BVHNode
Cell
CellSpacePartitioning
CohesionBehavior
CompositeGoal
ConvexHull
Corridor
CostTable
DFS
Dijkstra
Edge
EntityManager
EvadeBehavior
EventDispatcher
Behavior
FollowPathBehavior
FuzzyAND
FuzzyCompositeTerm
FuzzyFAIRLY
FuzzyModule
FuzzyOR
FuzzyRule
FuzzySet
FuzzyTerm
FuzzyVariable
FuzzyVERY
GameEntity
Goal
GoalEvaluator
Graph
GraphUtils
HalfEdge
HeuristicPolicyDijkstra
HeuristicPolicyEuclid
HeuristicPolicyEuclidSquared
HeuristicPolicyManhattan
InterposeBehavior
LeftSCurveFuzzySet
LeftShoulderFuzzySet
LineSegment
Logger
MathUtils
Matrix3
Matrix4
MemoryRecord
MemorySystem
MeshGeometry
MessageDispatcher
MovingEntity
NavEdge
NavMesh
NavMeshLoader
NavNode
Node
NormalDistFuzzySet
OBB
ObstacleAvoidanceBehavior
OffsetPursuitBehavior
OnPathBehavior
Path
Plane
Polygon
Polyhedron
PriorityQueue
PursuitBehavior
Quaternion
Ray
RectangleTriggerRegion
Regular
RightSCurveFuzzySet
RightShoulderFuzzySet
SAT
SeekBehavior
SeparationBehavior
SingletonFuzzySet
Smoother
SphericalTriggerRegion
State
StateMachine
SteeringBehavior
SteeringManager
Task
TaskQueue
Telegram
Think
Time
TriangularFuzzySet
Trigger
TriggerRegion
Vector3
Vehicle
Version
WanderBehavior

uuid

简介

NormalDistFuzzySet是Yuka js库中的一个模糊集合类型,表示一种具有正态分布特点的模糊集合。在许多应用场景中,对于一些算法处理的原始数据进行模糊化是必要的,而NormalDistFuzzySet则可用于将这些数据转换为更易处理的模糊数据。

uuid

每个NormalDistFuzzySet实例对象在创建时,将会自动生成一个唯一的 uuid,用于标识该对象的身份。uuid是一个32位的十六进制字符串,具有较高的唯一性和随机性,因此非常适合用于区分多个实例对象。uuid生成方法基于v4规范,可保证uuid的随机性和均匀性,且不依赖于任何外部环境。

以下是uuid的生成示例:

const set = new NormalDistFuzzySet({mean: 50, stddev: 10});
console.log(set.uuid);  // 0aecaf8b-dc2e-4ad0-9a4a-8f46184edfa3

注意事项

  • uuid生成时不依赖于任何输入参数,因此同一类别的NormalDistFuzzySet对象生成的uuid也会有所不同。
  • uuid生成是一个非常快速和低开销的操作,不会对程序性能产生明显影响。