Fork PyRPL on GitHub

Source code for pyrpl.software_modules.lockbox.models.linear

from .. import *


[docs]class LinearInputDirect(InputDirect): slope = FloatProperty(min=-1e10, max=1e10, default=1) signal_at_0 = FloatProperty(min=-1e10, max=1e10, default=0)
[docs] def expected_signal(self, variable): return self.slope * variable + self.signal_at_0
[docs]class Linear(Lockbox): """ A simple linear dependance of variable vs input """ #name = "Linear" _units = ['m', 'deg', 'rad'] variable = 'x'