# shrinkage::Logit

Shrinkage for Rust · 0.3.0

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

```rust
pub struct Logit;
```

Logit link, `eta = log(mu / (1 - mu))`. 

<a id="impl-deb7411a405be10eed304d2d4fedd893f819e9ef2e7f0299a836cc0bf62b1685"></a>

## Implementation of Clone

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

```rust
impl Clone for Logit
```

<a id="method-clone-deb7411a405be10eed304d2d4fedd893f819e9ef2e7f0299a836cc0bf62b1685"></a>

### `clone`

```rust
fn clone(&self) -> Self
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

<a id="impl-ceb330706f59f740f18b28f4294cb92bade1377add24b5301d2d26dd3780cf21"></a>

## [Implementation of ConvexLink](<45ae855dae253e1bbc77e093683e36c85f95b348ea7c924f536c479638434084>)

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

```rust
impl ConvexLink<Binomial<'_>> for Logit
```

<a id="impl-c04d70d290c5182232d5642d275a561cbeefeef4e33edaedff06edec0727d1a7"></a>

## Implementation of Copy

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

```rust
impl Copy for Logit
```

<a id="impl-76825d88b9ed5315f8d5f1d8d06bb2edfe5e4d275751ff226d7adae030e699d0"></a>

## Implementation of Debug

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

```rust
impl Debug for Logit
```

<a id="method-fmt-76825d88b9ed5315f8d5f1d8d06bb2edfe5e4d275751ff226d7adae030e699d0"></a>

### `fmt`

```rust
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

<a id="impl-62e01d7a0091a184bc673737d55e9f9deb29db726345b71fc0f9484c01c6aeea"></a>

## Implementation of Default

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

```rust
impl Default for Logit
```

<a id="method-default-62e01d7a0091a184bc673737d55e9f9deb29db726345b71fc0f9484c01c6aeea"></a>

### `default`

```rust
fn default() -> Self
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

<a id="impl-2f04551a2514283083aa46de0bd5b7567d452acb7cb8a8fe1c16d2503d4ac24c"></a>

## [Implementation of Link](<b8cca71c162ec648303732b0a3d9f0a7d17daee56916c57ec982c034c675738f>)

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

```rust
impl Link for Logit
```

<a id="method-inverse_link-2f04551a2514283083aa46de0bd5b7567d452acb7cb8a8fe1c16d2503d4ac24c"></a>

### `inverse_link`

```rust
fn inverse_link(&self, eta: f64) -> Result<f64, FitError>
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

<a id="method-inverse_link_derivative-2f04551a2514283083aa46de0bd5b7567d452acb7cb8a8fe1c16d2503d4ac24c"></a>

### `inverse_link_derivative`

```rust
fn inverse_link_derivative(&self, eta: f64) -> Result<f64, FitError>
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

<a id="method-link-2f04551a2514283083aa46de0bd5b7567d452acb7cb8a8fe1c16d2503d4ac24c"></a>

### `link`

```rust
fn link(&self, mu: f64) -> Result<f64, FitError>
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

<a id="method-link_from_log_probabilities-2f04551a2514283083aa46de0bd5b7567d452acb7cb8a8fe1c16d2503d4ac24c"></a>

### `link_from_log_probabilities`

```rust
fn link_from_log_probabilities(
    &self,
    log_p: f64,
    log_q: f64
) -> Result<f64, FitError>
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

<a id="method-log_abs_inverse_link_derivative-2f04551a2514283083aa46de0bd5b7567d452acb7cb8a8fe1c16d2503d4ac24c"></a>

### `log_abs_inverse_link_derivative`

```rust
fn log_abs_inverse_link_derivative(&self, eta: f64) -> Result<f64, FitError>
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

<a id="method-log_probabilities-2f04551a2514283083aa46de0bd5b7567d452acb7cb8a8fe1c16d2503d4ac24c"></a>

### `log_probabilities`

```rust
fn log_probabilities(&self, eta: f64) -> Result<(f64, f64), FitError>
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

<a id="impl-bb2d2ecd7fd5b00ea455481d418b42abe21c454fae9d2450622e58288c7045bf"></a>

## [Implementation of TwiceDifferentiableLink](<c41eda899b5b627e2c29e844d131210faac5c4524216344b1c755cf9bbe86f99>)

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

```rust
impl TwiceDifferentiableLink for Logit
```

<a id="method-inverse_link_derivative_ratio-bb2d2ecd7fd5b00ea455481d418b42abe21c454fae9d2450622e58288c7045bf"></a>

### `inverse_link_derivative_ratio`

```rust
fn inverse_link_derivative_ratio(&self, eta: f64) -> Result<f64, FitError>
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

<a id="method-inverse_link_second_derivative-bb2d2ecd7fd5b00ea455481d418b42abe21c454fae9d2450622e58288c7045bf"></a>

### `inverse_link_second_derivative`

```rust
fn inverse_link_second_derivative(&self, eta: f64) -> Result<f64, FitError>
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/link.rs>)

<a id="impl-09f4cec241f50a5a910288f05c38ae3be31191ab2cdd8417d04c5ac354590066"></a>

## Implementation of Freeze

```rust
impl Freeze for Logit
```

<a id="impl-7a9a84ea943b685d23e71bbd5f999420e223651c5cb2b9496e7b43783a943d84"></a>

## Implementation of RefUnwindSafe

```rust
impl RefUnwindSafe for Logit
```

<a id="impl-fcc87f1092abdfe230e16257bf550002b0a8cb8ef20a9971badc97ea80666521"></a>

## Implementation of Send

```rust
impl Send for Logit
```

<a id="impl-e05f289ec5e8f984e8512513e6a192d6e75c16c1fa3a72c3e1d74b5927262d84"></a>

## Implementation of Sync

```rust
impl Sync for Logit
```

<a id="impl-22109ae2ab2975190f0eb607f5d3ce3f27f048f3eb5dc98ac20c1b0d333202cc"></a>

## Implementation of Unpin

```rust
impl Unpin for Logit
```

<a id="impl-bc4d12e93dd5a1b5aab90e8571373d666302657da9222194ba3f4ef36ef8682e"></a>

## Implementation of UnsafeUnpin

```rust
impl UnsafeUnpin for Logit
```

<a id="impl-b63fdc78d1122a6dbfcd1d93ca0f9d21e556d6d443a8441124fec68c50fdee89"></a>

## Implementation of UnwindSafe

```rust
impl UnwindSafe for Logit
```

<a id="impl-1e5682dc18e03c648aa9b125290c107c1e8d96ce8a179a8532e4057da4daf0cd"></a>

## Implementation of Any

```rust
impl<T> Any for T where T: 'static + ?Sized
```

<a id="impl-6c0b25c2c92cdb117802d9c0a4c70afc9a8bfb0da875bc6e66191e2349fcdf3f"></a>

## Implementation of Borrow

```rust
impl<T> Borrow<T> for T where T: ?Sized
```

<a id="impl-796e80d926348273a22b04d8e84f510693b11c06ec57c3c3e2e8c1524094a85c"></a>

## Implementation of BorrowMut

```rust
impl<T> BorrowMut<T> for T where T: ?Sized
```

<a id="impl-8360e4092e7ec4a05a26dd304cd739398f0cacc50c8d08dd5be0223d1a08d02e"></a>

## Implementation of ByRef

```rust
impl<T> ByRef<T> for T
```

<a id="impl-dbb1293b7b5dd80c4d9a98cfdd6843dc7470224c0b1387731cd418da07046d7b"></a>

## Implementation of CastableFrom

```rust
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT where ST: ?Sized, DT: ?Sized
```

<a id="impl-97b65e7dfc44b5ecaa495a3a19fe737914a1e9f8532200cf8f46191314e7d777"></a>

## Implementation of CastableFrom

```rust
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT where ST: ?Sized, DT: ?Sized
```

<a id="impl-86d7da2bfd1140cc1675dfe6a975e6a2762338ab32731152da0723858ef3aa81"></a>

## Implementation of CloneToUninit

```rust
impl<T> CloneToUninit for T where T: Clone
```

<a id="impl-c22bdd3b1b677b66eb32d1c182cc1410c7f0c46491dd74e6a659647c238d19ec"></a>

## Implementation of From

```rust
impl<T> From<T> for T
```

<a id="impl-5adf6ca1830f30fbbac655ab8ff394d254954df7ededc7cc833c72fdc87d6f00"></a>

## Implementation of Imply

```rust
impl<T, U> Imply<T> for U where T: ?Sized, U: ?Sized
```

<a id="impl-85eec431edd188129f88290bbcb748e4d2fdc97f7efef3c162b8c252286ffec0"></a>

## Implementation of Into

```rust
impl<T, U> Into<U> for T where U: From<T>
```

<a id="impl-c40268dd59dd3329202d3c0544c62372e98ff3baa8ec442ec00752e024ec1d06"></a>

## Implementation of IntoEither

```rust
impl<T> IntoEither for T
```

<a id="impl-5655b1ef858b34a584cb80104f040c8a4063ced0d281311a0833ed12aefde86e"></a>

## Implementation of Pointable

```rust
impl<T> Pointable for T
```

<a id="impl-8cc2aa01198fc9fa44f08b889f62988d70d2a7f4f0f11f4666d4c08bdaddb22a"></a>

## Implementation of Read

```rust
impl<T> Read<Exclusive, BecauseExclusive> for T where T: ?Sized
```

<a id="impl-5ea09131039c62dd92b119d480a35c7e2b33d2b81dccf0b849f6b1f19f4bda24"></a>

## Implementation of Same

```rust
impl<T> Same for T
```

<a id="impl-7ee6ff38d6674f5edfe4734359062c2a67a572cff5899a89704764822b931c7f"></a>

## Implementation of SupersetOf

```rust
impl<SS, SP> SupersetOf<SS> for SP where SS: SubsetOf<SP>
```

<a id="impl-a8ef6e94191301c3685488478f4905086c47137bac2d606ea4d09631d5472b06"></a>

## Implementation of ToOwned

```rust
impl<T> ToOwned for T where T: Clone
```

<a id="impl-83960135d00d98080c95a08867729696e36811280c2dd9cf34c1b4fe21c81e18"></a>

## Implementation of TryFrom

```rust
impl<T, U> TryFrom<U> for T where U: Into<T>
```

<a id="impl-1cc495bcaa5112ffb304e7f0de674feca391fd97f47bec86033a9225b72ac05c"></a>

## Implementation of TryInto

```rust
impl<T, U> TryInto<U> for T where U: TryFrom<T>
```
