text stringlengths 0 828 |
|---|
self._set_parameters(parameters) |
terms = self.m / (1 + (1j * self.w * self.tau) ** self.c) |
# sum up terms |
specs = np.sum(terms, axis=1) |
ccomplex = self.sigmai * (1 - specs) |
response = sip_response.sip_response(self.f, ccomplex=ccomplex) |
return response" |
608,"def dre_dsigmai(self, pars): |
r"""""" |
:math:Add formula |
"""""" |
self._set_parameters(pars) |
terms = self.m * self.num / self.denom |
specs = np.sum(terms, axis=1) |
result = 1 - specs |
return result" |
609,"def dre_dm(self, pars): |
r"""""" |
:math:Add formula |
"""""" |
self._set_parameters(pars) |
terms = self.num / self.denom |
result = - self.sigmai * terms |
return result" |
610,"def dre_dtau(self, pars): |
r"""""" |
:math:Add formula |
"""""" |
self._set_parameters(pars) |
# term 1 |
num1 = self.c * self.w * self.otc1 * np.cos(self.ang) |
term1 = num1/self.denom |
# term 2 |
num2a = self.otc * np.cos(self.ang) |
num2b = 1 + num2a |
denom2 = self.denom ** 2 |
term2 = num2b / denom2 |
# term 3 |
term3 = 2 * self.c * self.w * self.otc1 * np.cos(self.ang) + self.otc2 |
result = self.sigmai * self.m * (term1 + term2 * term3) |
return result" |
611,"def dre_dc(self, pars): |
r"""""" |
:math:Add formula |
"""""" |
self._set_parameters(pars) |
# term 1 |
num1a = np.log(self.w * self.tau) * self.otc * np.sin(self.ang) |
num1b = self.otc * np.cos(self.ang) * np.pi / 2.0 |
term1 = (num1a + num1b) / self.denom |
# term 2 |
num2 = self.otc * np.sin(self.c / np.pi) * 2 |
denom2 = self.denom ** 2 |
term2 = num2 / denom2 |
# term 3 |
num3a = 2 * np.log(self.w * self.tau) * self.otc * np.cos(self.ang) |
num3b = 2 * ((self.w * self.tau) ** 2) * np.pi / 2.0 * np.sin(self.ang) |
num3c = 2 * np.log(self.w * self.tau) * self.otc2 |
term3 = num3a - num3b + num3c |
result = self.sigmai * self.m * (term1 + term2 * term3) |
return result" |
612,"def dim_dsigmai(self, pars): |
r"""""" |
:math:Add formula |
"""""" |
self._set_parameters(pars) |
result = np.sum(- self.m * self.otc * np.sin(self.ang) / self.denom, |
axis=1) |
return result" |
613,"def dim_dm(self, pars): |
r"""""" |
:math:Add formula |
"""""" |
self._set_parameters(pars) |
num1 = self.otc * np.sin(self.ang) |
result = -self.sigmai * num1 / self.denom |
return result" |
614,"def dim_dtau(self, pars): |
r"""""" |
:math:Add formula |
"""""" |
self._set_parameters(pars) |
# term 1 |
num1 = -self.m * (self.w ** self.c) * self.c\ |
* (self.tau ** (self.c - 1)) * np.sin(self.ang) |
term1 = self.sigmai * num1 / self.denom |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.