Nama : Mutiara Arsyillah

NIM : 230605110132

Jurusan : Teknik Informatika

library(mosaicCalc)
## Loading required package: mosaic
## Registered S3 method overwritten by 'mosaic':
##   method                           from   
##   fortify.SpatialPolygonsDataFrame ggplot2
## 
## The 'mosaic' package masks several functions from core packages in order to add 
## additional features.  The original behavior of these functions should not be affected by this.
## 
## Attaching package: 'mosaic'
## The following objects are masked from 'package:dplyr':
## 
##     count, do, tally
## The following object is masked from 'package:Matrix':
## 
##     mean
## The following object is masked from 'package:ggplot2':
## 
##     stat
## The following objects are masked from 'package:stats':
## 
##     binom.test, cor, cor.test, cov, fivenum, IQR, median, prop.test,
##     quantile, sd, t.test, var
## The following objects are masked from 'package:base':
## 
##     max, mean, min, prod, range, sample, sum
## Loading required package: mosaicCore
## 
## Attaching package: 'mosaicCore'
## The following objects are masked from 'package:dplyr':
## 
##     count, tally
## The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
## which was just loaded, will retire in October 2023.
## Please refer to R-spatial evolution reports for details, especially
## https://r-spatial.org/r/2023/05/15/evolution4.html.
## It may be desirable to make the sf package available;
## package maintainers should consider adding sf to Suggests:.
## The sp package is now running under evolution status 2
##      (status 2 uses the sf package in place of rgdal)
## 
## Attaching package: 'mosaicCalc'
## The following object is masked from 'package:stats':
## 
##     D
library(r2symbols)
## 
## Attaching package: 'r2symbols'
## The following object is masked from 'package:dplyr':
## 
##     sym
## The following object is masked from 'package:ggplot2':
## 
##     sym
library(EBImage)

Iterasi Grafis

Untuk melakukan iterasi secara grafis, kita membuat grafik fungsi yang akan diiterasi dan menandai tebakan awal pada sumbu horizontal. Untuk setiap langkah iterasi, lacak secara vertikal dari titik saat ini ke fungsi, lalu secara horizontal ke garis identitas (titik biru). Hasilnya akan menjadi titik awal untuk tebakan selanjutnya.

Metode dengan iterasi grafis adalah metode yang menggambarkan proses iteratif dengan menggunakan representasi grafis. Metode ini merupakan cara untuk menghitung iterasi yang berurutan χn + 1 = ƒ(χn) dari sebuah peta ƒ dimulai dari nilai awal χ0.

Berikut ada beberapa poin yang saya dapat dari metode iterasi grafis.

  1. Setiap iterasi yang dibuat akan selalu berubah nilai-nilainya.

  2. Pada grafik pertama, kita akan mamiliki titik atau nilai awal yang kemudian akan menjadi tebakan atau nilai yang akan menjadi langkah selanjutnya melakukan iterasi.

  3. Setiap iterasi yang dibuat akan selalu menghasilkan titik baru.

Lihat contoh berikut.

Image <- readImage("C://Users/WINDOWS 11/Pictures/Tabel.png")
print(Image)
## Image 
##   colorMode    : Color 
##   storage.mode : double 
##   dim          : 1405 549 4 
##   frames.total : 4 
##   frames.render: 1 
## 
## imageData(object)[1:5,1:6,1]
##      [,1] [,2] [,3] [,4] [,5] [,6]
## [1,]    1    1    1    1    1    1
## [2,]    1    1    1    1    1    1
## [3,]    1    1    1    1    1    1
## [4,]    1    1    1    1    1    1
## [5,]    1    1    1    1    1    1
Image1 <- Image + 0

par(mfrow= c(1,1))
plot(Image1)