% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parametrize.R
\name{reparametrize-fiber-bundle-method}
\alias{reparametrize-fiber-bundle-method}
\alias{reparametrize,fiber::bundle-method}
\title{\code{\link[=reparametrize]{reparametrize()}} method for \code{bundle} objects}
\arguments{
\item{x}{A \link{bundle} object.}

\item{n_points}{Number of equally-spaced arc-length points to use.
\itemize{
\item For a single \link{streamline}, defaults to \code{nrow(x@points)}.
\item For a \link{bundle}, defaults to the rounded mean number of points across
all streamlines.
}

Pass \code{NULL} to use these defaults explicitly.}
}
\value{
A \link{bundle} reparametrized onto the new grid. Every streamline in the
returned bundle has exactly \code{n_points} rows in \verb{@points} (defaulting to
the rounded mean number of points across all streamlines when \code{n_points}
is \code{NULL}).
}
\description{
Resamples every \link{streamline} inside a \link{bundle} onto a common uniform
arc-length grid. See \code{\link[=reparametrize]{reparametrize()}} for the full parameter documentation.
}
\examples{
pts1 <- matrix(runif(30), ncol = 3)
colnames(pts1) <- c("X", "Y", "Z")
pts2 <- matrix(runif(60), ncol = 3)
colnames(pts2) <- c("X", "Y", "Z")
b <- bundle(streamlines = list(streamline(points = pts1),
                                streamline(points = pts2)))
b_reparam <- reparametrize(b, n_points = 15)
b_reparam[[1]]@n_points  # 15
b_reparam[[2]]@n_points  # 15
}
\seealso{
\code{\link[=reparametrize]{reparametrize()}}
}
