Show / Hide Table of Contents

Class FibonacciElement

Represents a Fibonacci number at index n, and the two Fibonacci numbers at two preceding indexes, which are necessary for calculating this element's value.

Inheritance
System.Object
FibonacciElement
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AlgorithmsAndDataStructures.Algorithms.Search
Assembly: AlgorithmsAndDataStructures.dll
Syntax
public class FibonacciElement

Constructors

| Improve this Doc View Source

FibonacciElement(Int32, Int32)

Constructor.

Declaration
public FibonacciElement(int fibN2, int fibN1)
Parameters
Type Name Description
System.Int32 fibN2

Second Fibonacci number.

System.Int32 fibN1

First Fibonacci number

Properties

| Improve this Doc View Source

FibN

Is a Fibonacci number: FibN = FibN1 {aka. fib(n-1)} + FibN2 {aka. fib(n-2)}

Declaration
public int FibN { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

FibN1

Is the Fibonacci number immediately before FibN

Declaration
public int FibN1 { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

FibN2

Is the Fibonacci number immediately before FibN1

Declaration
public int FibN2 { get; set; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

ShiftBackward()

Shifts Fibonacci number one element backward in the sequence.

Declaration
public void ShiftBackward()
| Improve this Doc View Source

ShiftForward()

Shifts Fibonacci number one element forward in the sequence.

Declaration
public void ShiftForward()
  • Improve this Doc
  • View Source
Back to top Generated by DocFX