This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.commons.math3.analysis.function.Exp; | |
import org.apache.commons.math3.fitting.WeightedObservedPoints; | |
import org.apache.commons.math3.fitting.WeightedObservedPoint; | |
import org.apache.commons.math3.stat.regression.SimpleRegression; // Cambiar la importación | |
public class RegresionLinealSimple { | |
public static void main(String[] args) { | |
// Datos de entrada | |
double[] years = {2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023}; | |
double[] saldo = {751, 795, 852, 953, 971, 1002, 1287, 1396, 1399, 1502, 1596, 2000, 2842, 3052, 3520}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.argoritmia; | |
import weka.classifiers.trees.J48; | |
import weka.core.Attribute; | |
import weka.core.Instances; | |
import weka.core.converters.CSVLoader; | |
import weka.core.Instance; | |
import weka.core.DenseInstance; | |
import java.io.File; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example; | |
import weka.classifiers.Evaluation; | |
import weka.classifiers.trees.J48; | |
import weka.core.*; | |
import com.opencsv.CSVReader; | |
import java.io.FileReader; | |
import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See https://aka.ms/new-console-template for more information | |
bool salir = false; | |
while (!salir) | |
{ | |
Console.WriteLine("=================="); | |
Console.WriteLine("Nombre: Diego Lipa"); | |
Console.WriteLine("=================="); | |
Console.WriteLine("Elije una opción: "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Crear una nueva base de datos | |
--paso 01 | |
ALTER SESSION SET "_ORACLE_SCRIPT" = TRUE; | |
--paso 02 | |
CREATE USER USUARIO_MATRICULA IDENTIFIED BY "1234560" | |
DEFAULT TABLESPACE "USERS" | |
TEMPORARY TABLESPACE "TEMP"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------Diego Frank------ | |
--Crear una nueva base de datos | |
--paso 01 | |
ALTER SESSION SET "_ORACLE_SCRIPT" = TRUE; | |
--paso 02 | |
CREATE USER USUARIO_MATRICULA IDENTIFIED BY "1234560" | |
DEFAULT TABLESPACE "USERS" | |
TEMPORARY TABLESPACE "TEMP"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------- | |
-- Archivo creado - miércoles-setiembre-04-2024 | |
-------------------------------------------------------- | |
-------------------------------------------------------- | |
-- DDL for Sequence SQ_PERSONA | |
-------------------------------------------------------- | |
CREATE SEQUENCE "USUARIO_MATRICULA"."SQ_PERSONA" MINVALUE 10 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 30 CACHE 20 NOORDER NOCYCLE NOKEEP NOSCALE GLOBAL ; | |
-------------------------------------------------------- | |
-- DDL for Sequence SQ_PERSONA_CELULAR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ejercicio 01 | |
-- de 5 tablas usar la funcion count(*) --Contar | |
SELECT * FROM PERSONA; --LISTAR TODO LOS DATOS | |
SELECT | |
NOMBRE, | |
apellido_materno AS MATERNO, | |
apellido_paterno AS PATERNO | |
FROM PERSONA; | |
SELECT COUNT(*) AS cantidad_persona | |
FROM PERSONA; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--EJERCICIO 16 | |
--Uso de la CLAUSULA HAVING | |
SELECT apellido_paterno, count(*) AS cantidad FROM PERSONA | |
GROUP BY apellido_paterno | |
HAVING count(*) >= 2 | |
; | |
--Ejercicio 17 JOINS | |
--Uso de INNER JOIN | |
SELECT * FROM PERSONA p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.diego.pe.db; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
import javax.swing.JOptionPane; | |
public class Conexion { | |
// Declaración de variables estáticas para la conexión |
OlderNewer