MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / lognuniform

Function lognuniform

script/run_feature.py:83–85  ·  view source on GitHub ↗

sample from log uniform distribution between 0.01~1

(low=-2, high=0, size=1, base=10)

Source from the content-addressed store, hash-verified

81 save_image_saliancy(features_r[0], './tmp/rgb', True)
82
83def lognuniform(low=-2, high=0, size=1, base=10):
84 ''' sample from log uniform distribution between 0.01~1 '''
85 return np.power(base, np.random.uniform(low, high, size))
86
87def getrelpose(pose1, pose2):
88 ''' get relative pose from abs pose pose1 to abs pose pose2

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected