org.apache.poi.ss.formula.functions

## Class Intercept

- java.lang.Object
- - org.apache.poi.ss.formula.functions.Fixed2ArgFunction
  - - org.apache.poi.ss.formula.functions.Intercept

- All Implemented Interfaces:
    Function, Function2Arg

      public final class Intercept
      extends Fixed2ArgFunction

  Implementation of Excel function INTERCEPT()

  Calculates the INTERCEPT of the linear regression line that is used to predict y values from x values
  (http://introcs.cs.princeton.edu/java/97data/LinearRegression.java.html) Syntax:
  INTERCEPT(arrayX, arrayY)

  Author:
    Johan Karlsteen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Intercept()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ValueEval` | `evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1)` see `Function.evaluate(ValueEval[], int, int)`

    - ### Methods inherited from class org.apache.poi.ss.formula.functions.Fixed2ArgFunction

      `evaluate`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Intercept

          public Intercept()

  - ### Method Detail

    - #### evaluate

          public ValueEval evaluate(int srcRowIndex,
                                    int srcColumnIndex,
                                    ValueEval arg0,
                                    ValueEval arg1)

      Description copied from interface: `Function2Arg`
      see `Function.evaluate(ValueEval[], int, int)`

Copyright 2020 The Apache Software Foundation or its licensors, as applicable.