# shrinkage::SmoothDatafit

Shrinkage for Rust · 0.3.0

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

```rust
pub trait SmoothDatafit: DifferentiableDatafit
```

A differentiable convex loss, optionally providing a dual certificate. 

<a id="methods"></a>

## Methods

<a id="method-gap_safe"></a>

### `gap_safe`

```rust
fn gap_safe(&self) -> Option<&dyn shrinkage::GapSafeDatafit>
```

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

Borrow an optional original-loss dual certificate capability. 

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

## [Implementation of SmoothDatafit](<f6f2ab3078b0ea56f174e2981b999f9be72be3c00ca00ad6485be1ed341db8c1>)

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

```rust
impl SmoothDatafit for Binomial<'_>
```

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

## [Implementation of SmoothDatafit](<f6f2ab3078b0ea56f174e2981b999f9be72be3c00ca00ad6485be1ed341db8c1>)

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

```rust
impl SmoothDatafit for Gaussian<'_>
```
