| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Symmetric hard-limit transfer function
hardlims is a neural transfer function. Transfer functions calculate a layer's output from its net input.
hardlims(N,FP) takes N and optional function parameters,
| N |
S x Q matrix of net input (column) vectors |
| FP |
Struct of function parameters (ignored) |
and returns A, the S x Q +1/-1 matrix with +1's where N
0.
hardlims('dn',N,A,FP) returns the S x Q derivative of A with respect to N. If A or FP is not supplied or is set to [], FP reverts to the default parameters, and A is calculated from N.
hardlims('name') returns the name of this function.
hardlims('output',FP) returns the [min max] output range.
hardlims('active',FP) returns the [min max] active input range.
hardlims('fullderiv') returns 1 or 0, depending on whether dA_dN is S x S x Q or S x Q.
hardlims('fpnames') returns the names of the function parameters.
hardlims('fpdefaults') returns the default function parameters.
Here is how to create a plot of the hardlims transfer function.
Assign this transfer function to layer i of a network.
hardlims(n) = 1 if n
0, -1 otherwise.
| Provide feedback about this page |
![]() | hardlim | hextop | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |