Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我现在正在写一个 Range 类,我正在为公共范围 [0->1] 寻找一个好名字。如果它是一个长度为 1 的向量,我会称它为单位向量。是否有明确的名称来给出这个范围/间隔?可能是单位范围?
[0,1] 之间的闭合范围通常称为闭合单位区间。如果不包括端点,它将是开放单位间隔。
我会选择间隔,因为它听起来比“单位范围”更好:)
正常范围怎么样?