예제 #1
0
 def read_float(self):
     return unpack_float(self.file.read(_FLOAT_SIZE))[0]
예제 #2
0
 def get_float(self, position):
     return unpack_float(self.map[position:position + _FLOAT_SIZE])[0]
예제 #3
0
 def decode_weight(self, v):
     summedboost = unpack_float(v[_INT_SIZE:_INT_SIZE + _FLOAT_SIZE])[0]
     return summedboost * self.field_boost
예제 #4
0
 def decode_weight(self, v):
     summedboost = unpack_float(v[_INT_SIZE:_INT_SIZE + _FLOAT_SIZE])[0]
     return summedboost * self.field_boost
예제 #5
0
 def get_float(self, position):
     return unpack_float(self.get(position, _FLOAT_SIZE))[0]
예제 #6
0
 def get_float(self, position):
     return unpack_float(self.map[position:position + _FLOAT_SIZE])[0]
예제 #7
0
 def read_float(self):
     return unpack_float(self.file.read(_FLOAT_SIZE))[0]
예제 #8
0
 def get_float(self, position):
     return unpack_float(self.get(position, _FLOAT_SIZE))[0]
예제 #9
0
파일: formats.py 프로젝트: oier/Yaki
 def decode_weight(self, valuestring):
     summedboost = unpack_float(valuestring[_INT_SIZE:_INT_SIZE + _FLOAT_SIZE])[0]
     return summedboost