<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->

<refentry xml:id="function.fann-set-activation-function-layer" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
 <refnamediv>
  <refname>fann_set_activation_function_layer</refname>
  <refpurpose>Sets the activation function for all the neurons in the supplied layer.</refpurpose>
 </refnamediv>

 <refsect1 role="description">
  &reftitle.description;
  <methodsynopsis>
   <type>bool</type><methodname>fann_set_activation_function_layer</methodname>
   <methodparam><type>resource</type><parameter>ann</parameter></methodparam>
   <methodparam><type>int</type><parameter>activation_function</parameter></methodparam>
   <methodparam><type>int</type><parameter>layer</parameter></methodparam>
  </methodsynopsis>
  <para>
   Set the activation function for all the neurons in the layer number <literal>layer</literal>, counting the input layer as layer 0.
  </para>
  <para>
   It is not possible to set activation functions for the neurons in the input layer.
  </para>
 </refsect1>

 <refsect1 role="parameters">
  &reftitle.parameters;
  <variablelist>
   <varlistentry>
    <term><parameter>ann</parameter></term>
    <listitem>
     &fann.ann.description;
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><parameter>activation_function</parameter></term>
    <listitem>
     <para>
      The <link linkend="constants.fann-activation-funcs">activation functions</link> constant.
     </para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><parameter>layer</parameter></term>
    <listitem>
     <para>
      Layer number.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>

 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  &fann.return.bool;
 </refsect1>

 <refsect1 role="seealso">
  &reftitle.seealso;
  <para>
   <simplelist>
    <member><function>fann_set_activation_function</function></member>
    <member><function>fann_set_activation_function_hidden</function></member>
    <member><function>fann_set_activation_function_output</function></member>
    <member><function>fann_set_activation_steepness</function></member>
   </simplelist>
  </para>
 </refsect1>


</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->