<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSCNNNeuronSigmoid",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSCNNNeuronSigmoid"
  },
  "title" : "MPSCNNNeuronSigmoid"
}
-->

# MPSCNNNeuronSigmoid

A sigmoid neuron filter.

```
class MPSCNNNeuronSigmoid
```

## Overview

For each pixel in an image, the filter applies the following function:

![f(x) = 1 / (1 + e^-x)](images/com.apple.metalperformanceshaders/media-2903545@2x.png)

## Topics

### Initializers

### Instance Methods

[`init(device:)`](/documentation/MetalPerformanceShaders/MPSCNNNeuronSigmoid/init(device:))

Initializes a sigmoid neuron filter.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)