Lines Matching refs:deltas
88 deltas = self._model.getDeltas(master_values)
89 base = otRound(deltas.pop(0))
90 return base, self.storeDeltas(deltas)
92 def storeDeltas(self, deltas): argument
96 deltas = [otRound(d) for d in deltas]
97 if len(deltas) == len(self._supports) + 1:
98 deltas = tuple(deltas[1:])
100 assert len(deltas) == len(self._supports)
101 deltas = tuple(deltas)
103 varIdx = self._cache.get(deltas)
113 return self.storeDeltas(deltas)
114 self._data.addItem(deltas)
117 self._cache[deltas] = varIdx
120 def VarData_addItem(self, deltas): argument
121 deltas = [otRound(d) for d in deltas]
124 countThem = len(deltas)
126 deltas = tuple(deltas[1:])
129 deltas = tuple(deltas)
130 self.Item.append(list(deltas))
166 def interpolateFromDeltasAndScalars(deltas, scalars): argument
168 for d,s in zip(deltas, scalars):
177 deltas = varData[major].Item[minor]
178 return self.interpolateFromDeltasAndScalars(deltas, scalars)
180 def interpolateFromDeltas(self, varDataIndex, deltas): argument
184 return self.interpolateFromDeltasAndScalars(deltas, scalars)