Giter Site home page Giter Site logo

arep_lab1's Introduction

Laboratorio 1 AREP

Este repo fue desarrollado como laboratorio de la clase AREP de la Escuela Colombiana de Ingenieria Julio Garavito.

  • Se creo una Linkedlist propia de elementos tipo double que pudiera completar las siguientes operaciones:
	1. adicionar
  	2. remover
  	3. calcular su tamaño
  	4. saber si esta vacia
  	5. calcular su media
  	6. calcular su desviacion estandar
	7. imprimirse en un formato comodo para el usuario

Example

// Insert the object o at the end of the list
  public boolean add(double o) {
      if(head.next == null && head.data == 0){
          head.data = o;
          total += o;
          tail = head;
          System.out.println("node: [ data: " + tail.data + ",prior: "+ tail.prior +"]");
          head.index = size;
          size++;
          return true;
      }else{
          Node addo = new Node(o, tail);
          tail.next = addo;
          total += o;
          tail = addo;
          System.out.println("node: [ data: " + tail.data + ",prior: "+ tail.prior.data +"]");
          tail.index = size;
          size++;
          return true;
      }    
  • Adicionalmente se creo una prueba para cada operacion en una clase tipo Junit.
    @Test
      public void shouldSolveMeanFirstColumn()
      {
          MyMeanStandardLinkedList list = new MyMeanStandardLinkedList();
          list.add(160);
          list.add(591);
          list.add(114);
          list.add(229);
          list.add(230);
          list.add(270);
          list.add(128);
          list.add(1657);
          list.add(624);
          list.add(1503);
          double mean = list.calcMean();
    
          assertTrue( mean == 550.0 );
      }
    

Getting Started

Install with

git clone https://github.com/dracken1/CalcuComplejosCNYT.git

Run with

Dentro de la carpeta AREP_LAB1, inice cmd e intrduzca los siguientes comandos:

mvn clean

mvn compile

mvn test

o tabmien:

mvn package

Build with

El proyecto se desarrollo usando el lenguaje Java y la herramienta Intellij.

Author

Nicolás Cárdenas Chaparro

License

MIT License

Copyright (c) 2020 dracken1

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Acknowlegdments

  • Practicing java
  • Inspiration

arep_lab1's People

Contributors

dracken1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.